I have just released the new module Mail::SendEasy and need some tests and
feedbacks.
>From POD:
"Mail::SendEasy - Send plain/html e-mails through SMTP servers (platform
independent). Supports SMTP authentication and attachments."
I know that already exists a lot of SMTP, AUTH and e-mail senders at CPAN,
but no one in one single package. Specially one that doesn't have
dependencies, like libnet.
Soo, Mail::SendEasy is there. You just install it and can send e-mail
through SMTP servers that need authentication (what happens a lot, due
SPAM), and also can send Plain Text or HTML messages, or both (multipart).
Also you can send attachments, with an extra option to ZIP the attachments
before send them.
I tried to make a simple and direct interface, without care about what
happens behind:
use Mail::SendEasy ;
my $ok = Mail::SendEasy::send(
smtp => 'localhost' ,
user => 'foo' ,
pass => 123 ,
from => '[EMAIL PROTECTED]' ,
from_title => 'Foo Name' ,
reply => '[EMAIL PROTECTED]' ,
error => '[EMAIL PROTECTED]' ,
to => '[EMAIL PROTECTED]' ,
cc => '[EMAIL PROTECTED]' ,
subject => "MAIL Test" ,
msg => "The Plain Msg..." ,
html => "<b>The HTML Msg...</b>" ,
msgid => "0101" ,
anex => './attachment.file' ,
zipanex => 1 ,
) ;
if (!$ok) { warn Mail::SendEasy::error() ;}
It also has an OO interface, but in the end is all the same thing.
Regards,
Graciliano M. P.