Help for this page

Select Code to Download


  1. or download this
    use strict;
    
    use Mail::Mailer;
    ...
    }); 
    print $mailer $body;
    $mailer->close();
    
  2. or download this
    open(MAIL, "|/usr/lib/sendmail -oi -t -odq") || die "Can't open sendma
    +il: $!";
    print MAIL <<MESSAGE;
    From: Your name <emailaddress\@blah.com>
    ...
    this is easy.
    MESSAGE
    close(MAIL);