Skip to content

Commit 3928ffe

Browse files
michieldmarianaballa
authored andcommitted
fix port definition
1 parent b6ea337 commit 3928ffe

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

public_html/lists/admin/class.phplistmailer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ public function __construct($messageid, $email, $inBlast = true, $exceptions = f
8282
$this->Mailer = 'plugin';
8383
} elseif (!$this->inBlast && empty($_SESSION['adminloggedin']) &&
8484
defined('PHPMAILERSUBSCRIBEHOST') &&
85-
defined('PHPMAILERSUBSCRIBEHOST') && PHPMAILERSUBSCRIBEHOST != '') {
85+
defined('PHPMAILERSUBSCRIBEPORT') && PHPMAILERSUBSCRIBEHOST != '') {
8686
# logEvent('Sending email via PHPMAILERSUBSCRIBEHOST '.PHPMAILERSUBSCRIBEHOST);
8787
$this->Host = PHPMAILERSUBSCRIBERHOST;
88-
$this->Port = PHPMAILERSUBSCRIBERHOST;
88+
$this->Port = PHPMAILERSUBSCRIBERPORT;
8989
$this->Mailer = 'smtp';
9090
} elseif ($this->inBlast && defined('PHPMAILERBLASTHOST') && defined('PHPMAILERBLASTPORT') && PHPMAILERBLASTHOST != '') {
9191
$this->Host = PHPMAILERBLASTHOST;

public_html/lists/admin/init.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,9 @@
352352
if (!defined('PHPMAILERBLASTPORT') && defined('PHPMAILERPORT')) {
353353
define('PHPMAILERBLASTPORT', PHPMAILERPORT);
354354
}
355+
if (!defined('PHPMAILERSUBSCRIBEPORT') && defined('PHPMAILERPORT')) {
356+
define('PHPMAILERSUBSCRIBEPORT', PHPMAILERPORT);
357+
}
355358
if (!defined('PHPMAILERTESTHOST') && defined('PHPMAILERHOST')) {
356359
define('PHPMAILERTESTHOST', PHPMAILERHOST);
357360
}

0 commit comments

Comments
 (0)