NAME
Batch::Batchrun::Mail - send mail message for Batchrun
SYNOPSIS
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' );
DESCRIPTION
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.
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.
REQUIRED PARAMETERS
- ADDRESS
-
the mail address of the person to send the message
OPTIONAL PARAMETERS
- SUBJECT
-
the subject of the mail message
- MESSAGE
-
the body of the mail message (text)
- PRIORITY
-
priority to send the message (Urgent or Normal or Low )
- FROM
-
the mail address of the user that is sending the message
- CC
-
one or more mail addresses of the users to send a copy of the message
- HTML
-
an html version of the mail message
- SMTPSERVER
-
a comma delimited list of servers to use for SMTP
- ATTACHMENTS
-
a comma delimited list of file attachments.
TESTED PLATFORMS
AUTHOR
REVISION
Current $VERSION is 1.03.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 368:
=back doesn't take any parameters, but you said =back B<NOTE:> C<mail> returns 1 or 0 to determine completion status.