Batch::Batchrun::Mail - send mail message for Batchrun
use Batch::Batchrun::Mail;
mail( ADDRESS=>'test@somewhere.net', SUBJECT=>'Mail test', MESSAGE=>$somemsg, PRIORITY=>Urgent, FROM=>'user@host', CC=>'ccuser@host', SMTPSERVER=>'mailhost.net', ATTACHMENTS=>'d:\temp\attachment.text', HTML=>'htmltextmsg' );
The mail function provides a convenient way to send a mail message. Arguments are passed using named parameters. Each name is case insensitive. Of the several parameters only ADDRESS is required.
mail
This module uses MIME::LITE. On unix systems the default is to use Sendmail to send the message. On Windows NT, Net::SMTP gets called by MIME::Lite. As of version 1.135 of MIME::Lite there is a bug that does which causes CC addresses to be ignored when sending messages via SMTP. The author is aware of this and this will hopefully be fixed it in a future release.
the mail address of the person to send the message
the subject of the mail message
the body of the mail message (text)
priority to send the message (Urgent or Normal or Low )
the mail address of the user that is sending the message
one or more mail addresses of the users to send a copy of the message
an html version of the mail message
a comma delimited list of servers to use for SMTP
a comma delimited list of file attachments.
Current $VERSION is 1.03.
1 POD Error
The following errors were encountered while parsing the POD:
=back doesn't take any parameters, but you said =back B<NOTE:> C<mail> returns 1 or 0 to determine completion status.
To install Batch::Batchrun, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Batch::Batchrun
CPAN shell
perl -MCPAN -e shell install Batch::Batchrun
For more information on module installation, please visit the detailed CPAN module installation guide.