Jonathan has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/local/bin/perl -w use strict; use Mail::Sender; my $sender = new Mail::Sender { smtp => 'myserver.com' }; $sender->OpenMultipart( { from => 'Jonathan@myserver.com', to => 'Jonathan@anotherbox.com', subject => 'Embedded image test', subtype => 'related', boundary => 'boundary-test-1', type => 'multipart/related'} ); $sender->SendFile ( { description => 'html body', ctype => 'text/html; charset=us-ascii', encoding => '7bit', disposition => 'NONE', file => 'test.html'} ); $sender->SendFile ( { description => 'Company logo', ctype => 'image/gif', encoding => 'base64', disposition => "inline; filename=\"picture.gif\";\r\nC +ontent-ID, file => 'picture.gif'} ); $sender->Close(); __END__ And the html file test.html <HTML> <BODY BGCOLOR=#87CEFA TEXT=#000000> <TITLE>Test message</TITLE> <IMG SRC="cid:ed1"><BR> <BIG><BIG><B><U>This is a test message</U></B></BIG></BIG> </BODY> </HTML>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mail Sending me mad
by $code or die (Deacon) on Dec 14, 2000 at 23:27 UTC | |
|
Re: Mail Sending me mad
by kilinrax (Deacon) on Dec 14, 2000 at 22:38 UTC | |
|
Re: Mail Sending me mad
by turnstep (Parson) on Dec 15, 2000 at 01:04 UTC | |
|
Re: Mail Sending me mad
by jorg (Friar) on Dec 15, 2000 at 20:48 UTC | |
|
Re: Mail Sending me mad
by merlyn (Sage) on Dec 15, 2000 at 20:10 UTC | |
|
Re: Mail Sending me mad
by Jonathan (Curate) on Dec 15, 2000 at 14:04 UTC |