1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 13:21:54 +02:00

Send SMTP port number in test email.

This commit is contained in:
Cameron
2016-04-08 09:34:08 -07:00
parent 433f8a6aed
commit 85d144cb8e
2 changed files with 21 additions and 4 deletions

View File

@@ -240,13 +240,21 @@ function sendTest()
$mailheader_e107id = USERID;
$pref = e107::pref('core');
$add = ($pref['mailer']) ? " (".strtoupper($pref['mailer']).")" : ' (PHP)';
$add = ($pref['mailer']) ? " (".strtoupper($pref['mailer']).") " : ' (PHP)';
if($pref['mailer'] == 'smtp')
{
$add .= "Port: ".varset($pref['smtp_port'],25);
$add .= " - ".str_replace("secure=", "", $pref['smtp_options']);
}
$sendto = trim($_POST['testaddress']);
$eml = array();
$eml['email_subject'] = LAN_MAILOUT_113." ".SITENAME.$add;
$eml['email_subject'] = LAN_MAILOUT_113." ".$add;
$eml['email_sender_email'] = null;
$eml['email_sender_name'] = null;
$eml['email_replyto'] = null;