in reply to Re: EMail problem in outlook
in thread EMail problem in outlook
use Mail::Sender; eval { Mail::Sender->new( {from => 'user@domain.local', smtp => 'mailserver.domain.local'}) ->OpenMultipart({ to => 'user@domain.remote', subject => 'Subject Here!', multipart => 'related', }) ->Part({ ctype => 'text/html', disposition => 'NONE', msg => <<'*END*'}) <html><body> This is where your HTML Page will be <img src="cid:img1"> </body></html> *END* ->Attach({ description => 'image descr', ctype => 'image/jpeg', encoding => 'base64', disposition => "inline; filename=*;\r\nContent-ID: <img1>", file => '/path/to/image.jpg' }) ->Close(); } or print "Error sending mail: $Mail::Sender::Error\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: EMail problem in outlook
by chandanperl (Novice) on Aug 25, 2009 at 12:47 UTC | |
by marto (Cardinal) on Aug 25, 2009 at 13:20 UTC | |
by chandanperl (Novice) on Aug 25, 2009 at 14:36 UTC | |
by marto (Cardinal) on Aug 25, 2009 at 14:47 UTC | |
by james2vegas (Chaplain) on Aug 25, 2009 at 14:44 UTC |