end call early again to send massmails
This commit is contained in:
parent
6c09e763b9
commit
1c1ad598eb
@ -399,7 +399,7 @@ class saimod_mail extends \SYSTEM\SAI\sai_module{
|
||||
|
||||
public static function sai_mod__SAI_saimod_mail_action_send_email($data){
|
||||
//Send early response & end Call since it will take longer then the timeout
|
||||
/*ignore_user_abort(true);
|
||||
ignore_user_abort(true);
|
||||
ob_start();
|
||||
echo \SYSTEM\LOG\JsonResult::ok();
|
||||
header(filter_input(INPUT_SERVER, 'SERVER_PROTOCOL', FILTER_SANITIZE_STRING) . ' 200 OK');
|
||||
@ -410,13 +410,13 @@ class saimod_mail extends \SYSTEM\SAI\sai_module{
|
||||
flush();
|
||||
if(session_id()){
|
||||
session_write_close();}
|
||||
fastcgi_finish_request();*/
|
||||
fastcgi_finish_request();
|
||||
|
||||
//Start Process
|
||||
return self::send_list($data['email'],$data['list']);
|
||||
self::send_list($data['email'],$data['list']);
|
||||
|
||||
//Make sure we dont have stray processes?
|
||||
//die();
|
||||
die();
|
||||
}
|
||||
|
||||
public static function sai_mod__SAI_saimod_mail_action_update_email($data){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user