Help for this page

Select Code to Download


  1. or download this
    open (MAIL,"|sendmail -t") || die "Unable to open sendmail";
    print MAIL "To: $recipient\n";
    ...
    print MAIL "Subject: $subject\n\n";
    print MAIL "$body";
    close (MAIL) || die "Unable to send e-mail";
    
  2. or download this
    Insecure $ENV{PATH} while running with -T switch at submit.cgi line 13
    +7.
    
  3. or download this
    open (MAIL,"|sendmail -t") || die "Unable to open sendmail";