Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: minimalistic perl module for sending mails with attachments

by SuicideJunkie (Vicar)
on Nov 12, 2012 at 14:31 UTC ( #1003450=note: print w/ replies, xml ) Need Help??


in reply to minimalistic perl module for sending mails with attachments

Mail::Sender worked great for me. I don't know how minimal the module is, but usage is very simple, as below

use Mail::Sender; ... my $sender = new Mail::Sender {smtp => $smtpServerName, from => $emai +lFromAddress}; my $result = $sender->MailFile({ to => [@emailToList], cc => [@emailCCList], subject => "Stats (Day $day of $month/$year)" . ($errors?" - Parti +al results":''), msg => "Stats for day $day of $month/$year are attached." . ($erro +rs ? "\n\nErrors encountered:\n$errors\n" : ''), file => $filename, });

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2016-06-27 02:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (335 votes). Check out past polls.