http://www.perlmonks.org?node_id=276279


in reply to Sending email with Perl

Hello,

I think it is the easiest to use the MIME::Lite Module for that.
use MIME::Lite; # simple message, just text: $msg = MIME::Lite->new( From =>'me@myhost.com', To =>'you@yourhost.com', Cc =>'some@other.com, some@more.com', Subject =>'Hi!', Data =>"The content of the message\n..." );
You can also send messages with attagements or HTML messages...

snadra