Batchrun Team > Batch-Batchrun-1.03 > Batch::Batchrun::Mail

Download:
Batch-Batchrun-1.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View/Report Bugs
Module Version: 1.03   Source  

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 ^

Solaris 2.5.1, 2.6
WinNT 4.0

AUTHOR ^

Daryl Anderson <batchrun@pnl.gov>

REVISION ^

Current $VERSION is 1.03.

syntax highlighting: