Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Sending an attachment with MIME::Lite. RFC2111 Content-Id requirements

by imp (Priest)
on May 14, 2007 at 19:13 UTC ( #615399=note: print w/ replies, xml ) Need Help??


in reply to Re: Need a Mail::SendEasy example using attachments
in thread Need a Mail::SendEasy example using attachments

RFC2111 specifies:

Note: in Internet mail messages, the addr-spec in a Content-ID [MIME] or Message-ID [822] header are enclosed in angle brackets (<>).
Whether this is neccesary depends on the mail client. Gmail requires the angle brackets, Outlook does not. To make this work in the above example this should be used instead:
$msg->attach( Type => 'image/gif', Id => '<ltrhead.gif>', Path => 'fake_letterhead.gif', );
The current version of MIME::Lite (3.0.1) does not add the angle brackets, but that could change in the future so be sure to check the documentation.


Comment on Sending an attachment with MIME::Lite. RFC2111 Content-Id requirements
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://615399]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2015-07-29 00:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls