Hi, I have been trying to construct a mime email from constituent parts held in external DB using Email::Stuffer. The basics are working fine, but I cannot seem to get it to add the Content-ID header on attachments which is required by the app that will be holding mime version of mail.
Am I using the wrong incantation or does anyone know if this module does not support Content-ID as an attachment header?
Stripped back code :
my $email = Email::Stuffer->to('Simon Cozens<simon@somewhere.jp>') ->from('Santa@northpole.org') ->text_body("You've been good this year. No coal for you.") ->attach($getMessage_obj->getFileData,content_type => 'image/anc', disposition => "anc", name => 'image.anc', Id => 'anc-id') ->email; my $email_str = $email->as_string; print $email_str;
Output confirms first three headers recognised, but content id is not set
... --1394297894.A8F240.2176 Date: Sat, 8 Mar 2014 16:58:14 +0000 MIME-Version: 1.0 Content-Type: image/anc; name="image.anc" Content-Transfer-Encoding: base64 Content-Disposition: anc iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAYAAAA7bUf6AAAAAXNSR0IArs4c6QAAAAlwSF +lzAAAO ...
Lot's of Google has not turned up anything relevant, I've tried many variations instead of Id, such as content-id, cid etc to no avail.
Thanks in advance
Adrian
Platform
Win7, ActiveState Perl 5.16.3
Email Stuffer 0.009
In reply to Email::Stuffer->attach cannot set content-id header? by xsingyichuan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |