Many systems thesedays don't have a valid internet domain name and
perlbug@perl.org does not accept email with a return-path that does not
resolve. Therefore pass the user's address to sendmail so it's less
likely to get stuck in a mail queue somewhere.
EOF
}
- open( SENDMAIL, "|$sendmail -t -oi" )
- || die "'|$sendmail -t -oi' failed: $!";
+ open( SENDMAIL, "|-", $sendmail, "-t", "-oi", "-f", $from )
+ || die "'|$sendmail -t -oi -f $from' failed: $!";
print SENDMAIL build_complete_message();
if ( close(SENDMAIL) ) {
print "\nMessage sent\n";