diff options
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Config/MTA.pm | 6 | ||||
-rw-r--r-- | Bugzilla/Mailer.pm | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/Bugzilla/Config/MTA.pm b/Bugzilla/Config/MTA.pm index 3415677f3..686d5b3e4 100644 --- a/Bugzilla/Config/MTA.pm +++ b/Bugzilla/Config/MTA.pm @@ -68,7 +68,11 @@ sub get_param_list { type => 't', default => 'localhost' }, - + { + name => 'smtp_debug', + type => 'b', + default => 0 + }, { name => 'whinedays', type => 't', diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm index 1d4a90a4f..ab54ecfea 100644 --- a/Bugzilla/Mailer.pm +++ b/Bugzilla/Mailer.pm @@ -100,7 +100,8 @@ sub MessageToMTA { if ($method eq "SMTP") { push @args, Host => Bugzilla->params->{"smtpserver"}, - Hello => $hostname; + Hello => $hostname, + Debug => Bugzilla->params->{'smtp_debug'}; } if ($method eq "Test") { |