FIX_REMOVED_ECHO
This commit is contained in:
parent
c180192a52
commit
8ea9e82d82
@ -2045,13 +2045,13 @@ public function employeesEnrollmentInsert($params)
|
|||||||
|
|
||||||
//store email and mail content via helper to send notification
|
//store email and mail content via helper to send notification
|
||||||
$emp_emails[] = sendMailNotification::sendMailNotification('member_welcome_mail', $params);
|
$emp_emails[] = sendMailNotification::sendMailNotification('member_welcome_mail', $params);
|
||||||
Kint::dump($emp_emails);
|
// Kint::dump($emp_emails);
|
||||||
Kint::dump($key.'-'.count($excel_data));
|
// Kint::dump($key.'-'.count($excel_data));
|
||||||
// if mail count is 20 send bulk mail and reset emp_emails variable
|
// if mail count is 20 send bulk mail and reset emp_emails variable
|
||||||
if (count($emp_emails) == 20 || $key == count($excel_data) ) {
|
if (count($emp_emails) == 20 || $key == count($excel_data) ) {
|
||||||
$job_details = new Jobs();
|
$job_details = new Jobs();
|
||||||
$r = Jobs::addJob(['job_name' => 'bulk_mail','payload' => $emp_emails]);
|
$r = Jobs::addJob(['job_name' => 'bulk_mail','payload' => $emp_emails]);
|
||||||
echo 'Mail triggered';
|
// echo 'Mail triggered';
|
||||||
$emp_emails = [];
|
$emp_emails = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2059,6 +2059,8 @@ public function employeesEnrollmentInsert($params)
|
|||||||
}
|
}
|
||||||
} //end of for loop
|
} //end of for loop
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user