
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.
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.