open(SENDMAIL, "|/usr/lib/sendmail $sendmailparam -t -i") ||
die "Can't open sendmail";
print SENDMAIL trim($msg) . "\n";
close SENDMAIL;
变为
use Net::SMTP;
my $smtp_server = 'smtp.mycompany.com'; # 改为你们公司的邮件服务器
# Use die on error, so that the mail will be in the 'unsent mails' and
# can be sent from the sanity check page.
my $smtp = Net::SMTP->new($smtp_server) ||
die 'Cannot connect to server \'$smtp_server\'';
内部错误:
Bugzilla has suffered an internal error. Please save this page and send it to fanzhenyu@ieslab with details of what you were doing at the time this message appeared.
URL: http://172.20.9.41/process_bug.cgi
undef error - Can't open sendmail at /usr/lib/perl5/5.8.0/CGI/Carp.pm line 312.