mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 22:27:34 +02:00
Send SMTP port number in test email.
This commit is contained in:
@@ -569,12 +569,21 @@ class mailout_main_ui extends e_admin_ui
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
$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']);
|
$sendto = trim($_POST['testaddress']);
|
||||||
|
|
||||||
|
$subjectSitename = ($_POST['testtemplate'] == 'textonly') ? SITENAME : '';
|
||||||
|
|
||||||
$eml = array(
|
$eml = array(
|
||||||
'e107_header' => USERID,
|
'e107_header' => USERID,
|
||||||
'subject' => LAN_MAILOUT_113." ".$add,
|
'subject' => LAN_MAILOUT_113." ".$subjectSitename.$add,
|
||||||
'body' => str_replace("[br]", "\n", LAN_MAILOUT_114),
|
'body' => str_replace("[br]", "\n", LAN_MAILOUT_114),
|
||||||
'template' => vartrue($_POST['testtemplate'],null),
|
'template' => vartrue($_POST['testtemplate'],null),
|
||||||
'shortcodes' => $this->getExampleShortcodes(),
|
'shortcodes' => $this->getExampleShortcodes(),
|
||||||
|
@@ -240,13 +240,21 @@ function sendTest()
|
|||||||
$mailheader_e107id = USERID;
|
$mailheader_e107id = USERID;
|
||||||
$pref = e107::pref('core');
|
$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']);
|
$sendto = trim($_POST['testaddress']);
|
||||||
|
|
||||||
|
|
||||||
$eml = array();
|
$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_email'] = null;
|
||||||
$eml['email_sender_name'] = null;
|
$eml['email_sender_name'] = null;
|
||||||
$eml['email_replyto'] = null;
|
$eml['email_replyto'] = null;
|
||||||
|
Reference in New Issue
Block a user