Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: minimalistic perl module for sending mails with attachments

by SuicideJunkie (Priest)
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, });


Comment on Re: minimalistic perl module for sending mails with attachments
Download Code

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 musing on the Monastery: (15)
As of 2014-07-31 13:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (248 votes), past polls