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:
Alvaro Campos
2012-06-18 16:30:24 -04:00
parent 833f99241c
commit e928579a45
2 changed files with 10 additions and 2 deletions

View File

@@ -1678,7 +1678,12 @@ class wsBase
$oUser = new Users();
$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);
//Save data - Start