From 36a8bedcd33430f7d48165fb9214c4190fa39db8 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 18 Mar 2021 14:15:43 +0800 Subject: [PATCH] fix port setting --- NotifySend.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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']; + } -- 2.39.2