Mail::File is a Perl module that was written to overcome the problem of sending mail messages, where there is no mail application is available.
The aim of the module is to write messages to a text file, that will format the contents to include all the key elements of the message, such that the file can be transported to another machine, which is then capable of sending mail messages.
Notes that the filename template defaults to 'mail-XXXXXX.eml'.
SYNOPSIS
use Mail::File;
my $mail = Mail::File->new(template => 'mailXXXX.tmp');
$mail->From('me@example.com');
$mail->To('you@example.com');
$mail->Cc('Them < them@example.com >');
$mail->Bcc('Us < us@example.com >; anybody@example.com');
$mail->Subject('Blah Blah Blah');
$mail->Body('Yadda Yadda Yadda');
$mail->XHeader('X-Header' => 'Blah Blah Blah');
$mail->send;
# Or use a hash
my %hash = (
From => 'me@example.com',
To => 'you@example.com',
Cc => 'Them < them@example.com >',
Bcc => 'Us < us@example.com >, anybody@example.com',
Subject => 'Blah Blah Blah',
Body => 'Yadda Yadda Yadda',
'X-Header' => 'Blah Blah Blah',
template => 'mailXXXX.tmp'
);
my $mail = Mail::File->new(%hash);
$mail->send;
Product's homepage
Requirements:
· Perl