I actually use Mail::Sender and here is a sample of how.
my $sender = new Mail::Sender({ smtp => "skyline", # smtp mail sever from => $from, # list of comma separated email addresses }); $sender->MailFile({ to => $to, # list of comma separated email addresses subject => $subject, # the subject of the email of course msg => "@body", # the body of the email file => \...@attch, # array of files to attach to the email }); $sender->Close; Matt From: perl-unix-users-boun...@listserv.activestate.com [mailto:perl-unix-users-boun...@listserv.activestate.com] On Behalf Of Perl Perl Sent: Tuesday, February 17, 2009 8:34 To: perl-unix-users@listserv.ActiveState.com Subject: [Perl-unix-users] Perl Script for sending a mail Hi All, I want to write a perl script which sends the mail with the attachements. Browsing intenet I got that I can one of these modules 1) Email::Send 2) Mime::Lite & 3) chilkat I am not sure which one I have to use, so could you please let me know about this. If you have examples it will be great help. Thanks, Mustafa
_______________________________________________ Perl-Unix-Users mailing list Perl-Unix-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs