Help for this page
my $mailer = new Mail::Mailer 'smtp', Server => 'localhost' or die "Co +uldn't create a mail object!\n"; ... $mailer->print($mailContents); #$mailContents - Contains the file cont +ents with new lines. $mailer->close();