summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
Diffstat (limited to 'CGI.pl')
-rw-r--r--CGI.pl5
1 files changed, 2 insertions, 3 deletions
diff --git a/CGI.pl b/CGI.pl
index 0d03562fe..163c83a56 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -44,6 +44,7 @@ use Bugzilla::Util;
use Bugzilla::Config;
use Bugzilla::Constants;
use Bugzilla::Error;
+use Bugzilla::BugMail;
# Shut up misguided -w warnings about "used only once". For some reason,
# "use vars" chokes on me when I try it here.
@@ -225,9 +226,7 @@ sub MailPassword {
"login" => $login,
"password" => $password});
- open SENDMAIL, "|/usr/lib/sendmail -t -i";
- print SENDMAIL $msg;
- close SENDMAIL;
+ Bugzilla::BugMail::MessageToMTA($msg);
}
sub PutHeader {