in reply to Sending Mail trough Perl using ActivePerl on windows

I'd use MIME::Lite. Consider:

use strict; use warnings; use MIME::Lite; # Configure smtp server - required one time only MIME::Lite->send ("smtp", "smtp.server.com"); my $msg = MIME::Lite->new ( From => 'wibble@wobble.com', To => 'foo@boo.com', Data => "A simple test message\n", Subject => "Hello World", ); $msg->send ();

DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^2: Sending Mail trough Perl using ActivePerl on windows
by smahesh (Pilgrim) on Jun 20, 2007 at 03:48 UTC

    Another vote for MIME::Lite from me. I needed a solution to monitor a site and send me an email when an important event happened. With MIME::Lite, this was very trivial. The documentation has quite a few examples to get you started.

    Mahesh