Batch::Batchrun::Mail - send mail message for Batchrun


Batch-Batchrun documentation  | view source Contained in the Batch-Batchrun distribution.

Index


NAME

Top

Batch::Batchrun::Mail - send mail message for Batchrun

SYNOPSIS

Top

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

Top

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

Top

Solaris 2.5.1, 2.6
WinNT 4.0

AUTHOR

Top

Daryl Anderson <batchrun@pnl.gov>

REVISION

Top

Current $VERSION is 1.03.


Batch-Batchrun documentation  | view source Contained in the Batch-Batchrun distribution.