PM-2211: I added new column Error_mail in Email's log
This commit is contained in:
@@ -5067,8 +5067,10 @@ class Cases
|
||||
}
|
||||
$aConfiguration = System::getEmailConfiguration();
|
||||
|
||||
$msgError = "";
|
||||
if (!isset($aConfiguration['MESS_ENABLED']) || $aConfiguration['MESS_ENABLED'] != '1') {
|
||||
return false;
|
||||
$msgError = "The default configuration wasn't defined";
|
||||
$aConfiguration['MESS_ENGINE'] = '';
|
||||
}
|
||||
|
||||
//Send derivation notification - Start
|
||||
@@ -5225,13 +5227,16 @@ class Cases
|
||||
"app_msg_bcc" => "",
|
||||
"app_msg_attach" => "",
|
||||
"app_msg_template" => "",
|
||||
"app_msg_status" => "pending"
|
||||
"app_msg_status" => "pending",
|
||||
"app_msg_error" => $msgError
|
||||
));
|
||||
|
||||
if (($aConfiguration["MESS_BACKGROUND"] == "") ||
|
||||
($aConfiguration["MESS_TRY_SEND_INMEDIATLY"] == "1")
|
||||
) {
|
||||
$oSpool->sendMail();
|
||||
if ($msgError == '') {
|
||||
if (($aConfiguration["MESS_BACKGROUND"] == "") ||
|
||||
($aConfiguration["MESS_TRY_SEND_INMEDIATLY"] == "1")
|
||||
) {
|
||||
$oSpool->sendMail();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user