1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Correct mail-id detection in bounce handling routine.

This commit is contained in:
Cameron
2014-10-22 21:19:09 -07:00
parent 557e0111a5
commit 933dd3db44
3 changed files with 58 additions and 29 deletions

View File

@@ -447,12 +447,13 @@ class mailout_main_ui extends e_admin_ui
$sendto = trim($_POST['testaddress']);
$eml = array(
'subject' => LAN_MAILOUT_113." ".$add,
'body' => str_replace("[br]", "\n", LAN_MAILOUT_114),
'template' => vartrue($_POST['testtemplate'],null)
'subject' => LAN_MAILOUT_113." ".$add,
'body' => str_replace("[br]", "\n", LAN_MAILOUT_114),
'template' => vartrue($_POST['testtemplate'],null),
'shortcodes' => array('USERID'=>555, 'USERNAME'=>'John Smith', 'LOGINNAME'=>'TestName', 'PASSWORD'=>'xxxxxxx', 'ACTIVATION_LINK'=>SITEURL."signup.php#activate")
);
if (!e107::getEmail()->sendEmail($sendto,LAN_MAILOUT_189,$eml))
if (!e107::getEmail()->sendEmail($sendto, LAN_MAILOUT_189, $eml))
{
$mes->addError(($pref['mailer'] == 'smtp') ? LAN_MAILOUT_67 : LAN_MAILOUT_106);
}