Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003450]
[LanX]: disc+ true every node authored by me or mentioning Perl 6 ;)
[Discipulus]: naahh..
[LanX]: oh a tunnel ...
LanX ducks!
marto quacks
[1nickt]: LanX You flatter yourself. I downvote only posts that I believe do not support and promote Perl. These would include threads berating P5P volunteers and others.

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2018-04-26 10:29 GMT
Find Nodes?
    Voting Booth?