Mail::Send 1.74 review

Download
by rbytes.net on

Mail::Send is a simple electronic mail interface. SYNOPSIS: require Mail::Send; $msg = new Mail::Send; $msg =

License: Perl Artistic License
File size: 46K
Developer: Mark Overmeer
0 stars award from rbytes.net

Mail::Send is a simple electronic mail interface.

SYNOPSIS:

require Mail::Send;

$msg = new Mail::Send;

$msg = new Mail::Send Subject=>'example subject', To=>'timbo';

$msg->to('user@host');
$msg->to('user@host', 'user2@example.com');
$msg->subject('example subject');
$msg->cc('user@host');
$msg->bcc('someone@else');

$msg->set($header, @values);
$msg->add($header, @values);
$msg->delete($header);

# Launch mailer and set headers. The filehandle returned
# by open() is an instance of the Mail::Mailer class.
# Arguments to the open() method are passed to the Mail::Mailer
# constructor.

$fh = $msg->open; # some default mailer
# $fh = $msg->open('sendmail'); # explicit

print $fh "Body of message";

$fh->close; # complete the message and send it

$fh->cancel; # not yet implemented

Mail::Send 1.74 search tags