Help for this page

Select Code to Download


  1. or download this
            $message = "From: blah\nTo: blah\nSubject: blah\n\nmessage\n";
            open (SENDMAIL,"|sendmail -i);
            print SENDMAIL $message;
            close(SENDMAIL);
    
  2. or download this
            use Net::SMTP;
    
    ...
            $smtp->dataend();
    
            $smtp->quit;