Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Purdy (2383)

AOL IM: EmeraldWarp (Add Buddy, Send Message)
Yahoo! ID: jpurdy2 (Add User, Send Message)

Bleh - not feeling creative right now. You can check me out on PerlMonks [].

Journal of Purdy (2383)

Tuesday November 06, 2001
08:35 AM

Emailer search

[ #1182 ]
I did some research on e-mail tools/API's in Perl and have come to the conclusion that I like MIME::Lite. I also checked out Mail::Sendmail, Mail::Mailer, Net::SMTP and Mail::Send. MIME::Lite just looked better to me.

I was working on an old CGI script that piped to '/usr/lib/sendmail' and thought while I was upgrading it to use to also tackle that. MIME::Lite is very neat. Here's some easy code to compose/send an e-mail:

$msg = MIME::Lite->new(
   To => "purdy\",
   From => "purdy\",
   Subject => "Hello, World!",
   Data => $emessage
$msg->add( "Reply-To" => "purdy\" );

Of course, MIME::Lite has other cool stuff, too, like sending attachments, but perhaps that is for another day. ;)


The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.