- Tue Feb 21, 2017 9:35 am
#789275
i have a problem that all the mails sent by any trigger with multi recipients, stay in pending status and not sent to the users, however the mails with single recipient is sending successfully,
here is one of the triggers:-
- i tried to run the cron file with the code
here is one of the triggers:-
Code: Select all
the mails in the mail log is in the pending status as below:
and as you see in the (TO) field there is no space between mail addresses (may be this is the problem so how to solve it if it is)$caseId = @@APPLICATION; //UID for current case
$users = executeQuery("SELECT DISTINCT USR_UID FROM APP_DELEGATION WHERE APP_UID = '$caseId'");
if (is_array($users) and count($users) > 0) {
$emailTo; //empty string to hold the emails of the participants in case
foreach ($users as $user) {
$aUser = userInfo($user['USR_UID']);
$emailTo .= (empty($emailTo) ? "" : ";" ) . $aUser['mail'];
}
PMFSendMessage(@@APPLICATION, 'crm@imc-egypt.org', $emailTo,'' , '',
"Business plan rejected", 'rejected.html');
}
- i tried to run the cron file with the code
Code: Select all
put it telling me that the software is not compatible with the ( windows 8 ) however i can successfully run another php file to calculate the overdue cases with the same code
"C:\Bitnami\processmaker-3.0.1.8-0\php\php.exe" -f "C:\Bitnami\processmaker-3.0.1.8-0\apps\processmaker\htdocs\workflow\engine\bin\cron.php"
Code: Select all
please let me know where is the problem"C:\Bitnami\processmaker-3.0.1.8-0\php\php.exe" -f "C:\Bitnami\processmaker-3.0.1.8-0\apps\processmaker\htdocs\workflow\engine\bin\overduecases.php"