vetrivel has asked for the wisdom of the Perl Monks concerning the following question:
I have used MIME::Lite program to send a mail with attachments . But I have one problem over here . The problem is that , I am sending a jpg file through mail , My question is that , The attached jpg image should be displayed in inline and attachment . But I got only attachment , in lotus mail client in window . In thundirbird i got both inline and attachment , Herewith I have mentioned the code
use MIME::Lite; $msg = MIME::Lite->new( From => 'testing@mailaddress', To => 'testing1@mailaddress', Subject => 'Testing', Type => 'multipart/mixed' ); $msg->attach( Type => 'TEXT', Data => "Here's the jpeg file you wanted" ); $msg->attach( Type => 'image/jpg', Path => '1.jpg', Filename => 'logo.jpg', Disposition => 'attachment' ); $msg->send('smtp','smtp ip address');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: send mail with inline/attachment
by Anonymous Monk on Mar 15, 2010 at 13:43 UTC | |
|
Re: send mail with inline/attachment
by jfroebe (Parson) on Mar 15, 2010 at 17:20 UTC | |
by vetrivel (Sexton) on Mar 16, 2010 at 08:04 UTC |