chandanperl has asked for the wisdom of the Perl Monks concerning the following question:
use Mail::Sender; eval { (new Mail::Sender) ->OpenMultipart({ to => 'someone@somewhere.com', subject => 'Alternatives with images', # debug => 'c:\temp\zkMailFlow.log', multipart => 'related', }) ->Part({ctype => 'multipart/alternative'}) ->Part({ ctype => 'text/plain', dispos +ition => 'NONE', msg => <<'*END*' }) A long mail message. *END* ->Part({ctype => 'text/html', disposit +ion => 'NONE', msg => <<'*END*'}) <html><body><h1>A long</h1><p align=center> mail message. <img src="cid:img1"> </p></body></html> *END* ->EndPart("multipart/alternative") ->Attach({ description => 'ed\'s jpg', ctype => 'image/jpeg', encoding => 'base64', disposition => "inline; filename=\"051 +8m_b.jpg\";\r\nContent-ID: <img1>", file => 'E:\pix\humor\0518m_b.jpg' }) ->Close(); } or print "Error sending mail: $Mail::Sender::Error\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: problem with Mail::Sender while sending email
by james2vegas (Chaplain) on Aug 26, 2009 at 04:44 UTC | |
by chandanperl (Novice) on Aug 26, 2009 at 04:53 UTC | |
by chandanperl (Novice) on Aug 26, 2009 at 05:01 UTC | |
by james2vegas (Chaplain) on Aug 26, 2009 at 05:07 UTC | |
by Boldra (Curate) on Aug 28, 2009 at 12:55 UTC | |
by Jenda (Abbot) on Aug 28, 2009 at 19:21 UTC | |
| |
|
Re: problem with Mail::Sender while sending email
by chandanperl (Novice) on Aug 26, 2009 at 04:39 UTC |