From 749cc93785e7ef6ec4bb62e0201ef37f6802f238 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Tue, 21 Oct 2014 14:30:38 -0400 Subject: [PATCH] Bug 1073380 - Pass the hostname and port as two separate arguments to Email::Sender r=dkl a=glob (cherry picked from commit 226b92c37fed3616a2c9d23693ed9a4321bb879f) Signed-off-by: Martin Renvoize --- Bugzilla/Mailer.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm index 301ca72a5..4efc1becd 100644 --- a/Bugzilla/Mailer.pm +++ b/Bugzilla/Mailer.pm @@ -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,