Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Sending Mail trough Perl using ActivePerl on windows

by GrandFather (Saint)
on Jun 19, 2007 at 22:45 UTC ( [id://622134]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://622134]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-04-23 10:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found