Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

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]
[choroba]: I don't even remember the beginning
[choroba]: someone told me to use perl instead of sed for something, and several years later, I'm developing a huge Tk application

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2018-06-22 09:31 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (123 votes). Check out past polls.