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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.