BUG 4986 Email notification is not working
- The line was added by refered RobinHoo1973 which no caused any problems and works properly
This commit is contained in:
@@ -1678,7 +1678,12 @@ class wsBase
|
|||||||
|
|
||||||
$oUser = new Users();
|
$oUser = new Users();
|
||||||
$aUser = $oUser->load($userId);
|
$aUser = $oUser->load($userId);
|
||||||
$sFromName = '"' . $aUser['USR_FIRSTNAME'] . ' ' . $aUser['USR_LASTNAME'] . '"';
|
|
||||||
|
if (trim($aUser['USR_EMAIL'])=='') {
|
||||||
|
$aUser['USR_EMAIL'] = 'info@'.$_SERVER['HTTP_HOST'];
|
||||||
|
}
|
||||||
|
|
||||||
|
$sFromName = '"' . $aUser['USR_FIRSTNAME'] . ' ' . $aUser['USR_LASTNAME'] . '" <'.$aUser['USR_EMAIL'].'>';
|
||||||
$oCase->sendNotifications($appdel['TAS_UID'], $nextDelegations, $appFields['APP_DATA'], $caseId, $delIndex, $sFromName);
|
$oCase->sendNotifications($appdel['TAS_UID'], $nextDelegations, $appFields['APP_DATA'], $caseId, $delIndex, $sFromName);
|
||||||
|
|
||||||
//Save data - Start
|
//Save data - Start
|
||||||
|
|||||||
@@ -110,7 +110,10 @@ try {
|
|||||||
// Send notifications - Start
|
// Send notifications - Start
|
||||||
$oUser = new Users();
|
$oUser = new Users();
|
||||||
$aUser = $oUser->load($_SESSION['USER_LOGGED']);
|
$aUser = $oUser->load($_SESSION['USER_LOGGED']);
|
||||||
$sFromName = '"' . $aUser['USR_FIRSTNAME'] . ' ' . $aUser['USR_LASTNAME'] . '"';
|
if (trim($aUser['USR_EMAIL'])=='') {
|
||||||
|
$aUser['USR_EMAIL'] = 'info@'.$_SERVER['HTTP_HOST'];
|
||||||
|
}
|
||||||
|
$sFromName = '"' . $aUser['USR_FIRSTNAME'] . ' ' . $aUser['USR_LASTNAME'] . '" <'.$aUser['USR_EMAIL'].'>';
|
||||||
try {
|
try {
|
||||||
$oCase->sendNotifications($_SESSION['TASK'], $_POST['form']['TASKS'], $appFields['APP_DATA'], $_SESSION['APPLICATION'], $_SESSION['INDEX'], $sFromName);
|
$oCase->sendNotifications($_SESSION['TASK'], $_POST['form']['TASKS'], $appFields['APP_DATA'], $_SESSION['APPLICATION'], $_SESSION['INDEX'], $sFromName);
|
||||||
} catch(Exception $e){
|
} catch(Exception $e){
|
||||||
|
|||||||
Reference in New Issue
Block a user