My Perl Libs


NAME

     EL::mail - Perl Simple Object to mail manager


SYNOPSIS

     use EL::mail;
     my $mail = EL::mail->new;


DESCRIPTION

     Send mensages and valid a e-mail  address. Send mensage by local MTA
     sendmail.

METHODS

     $mail->valid($email)
     $mail->send({ %headers }, $body)
     $mail->error_msg
     $mail->error_cod


EXAMPLE

     use strict;
     use EL::mail;
     my $mail = EL::mail->new
     if (not $mail->valid('larry@wall.org')) {
         print "Email inválido: ",$mail->error_msg,"\n";
         exit 1;
     }
     $mail->send(
         {
             From => 'ednardo@elobo.cjb.net',
             To => 'larry@wall.org',
             Subject => 'Hello Master !!',
         },
         'Perl it's very cool. Thank you !!',
     );
     exit 0;


AUTHORS

     Ednardo Lobo <ednardo@elobo.cjb.net>


SEE ALSO

     EL::lib, Mail::Send, Mail::Mailer, Mail::Valid