From: Alan Knowles Date: Thu, 18 Mar 2021 06:15:43 +0000 (+0800) Subject: fix port setting X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=36a8bedcd33430f7d48165fb9214c4190fa39db8 fix port setting --- diff --git a/NotifySend.php b/NotifySend.php index f8076b8b..fa0c575c 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -430,10 +430,13 @@ class Pman_Core_NotifySend extends Pman $mailer->host = $server; $mailer->auth = true; $mailer->username = $settings['username'];; - $mailer->password = $settings['password']; + $mailer->password = $settings['password']; + if (isset($settings['port'])) { + $mailer->port = $settings['port']; + } if (isset($settings['socket_options'])) { $mailer->socket_options = $settings['socket_options']; - $mailer->port = $settings['port']; + }