Skip to content

Commit

Permalink
Bug 1073380 - Pass the hostname and port as two separate arguments to…
Browse files Browse the repository at this point in the history
… Email::Sender

r=dkl a=glob

(cherry picked from commit 226b92c)
Signed-off-by: Martin Renvoize <[email protected]>
  • Loading branch information
dylanwh authored and mrenvoize committed Jan 16, 2024
1 parent 5498755 commit d084a38
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Bugzilla/Mailer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,10 @@ sub MessageToMTA {
}

if ($method eq "SMTP") {
my ($host, $port) = split(/:/, Bugzilla->params->{'smtpserver'}, 2);
$transport = Email::Sender::Transport::SMTP->new({
host => Bugzilla->params->{'smtpserver'},
host => $host,
defined($port) ? (port => $port) : (),
sasl_username => Bugzilla->params->{'smtp_username'},
sasl_password => Bugzilla->params->{'smtp_password'},
helo => $hostname,
Expand Down

0 comments on commit d084a38

Please sign in to comment.