Send Mails Asynchronously #62

Closed
opened 2024-02-19 22:36:10 +01:00 by DrMaxNix · 0 comments
Owner

Generate a queue from newsletter methods, close the connection and then do the expensive mail sending action asynchronously.

Proof of concept

ob_end_clean();
header("Connection: close\r\n");
header("Content-Encoding: none\r\n");
ignore_user_abort(true);
ob_start();
echo ('Text user will see');
$size = ob_get_length();
header("Content-Length: $size");
ob_end_flush();
flush();
ob_end_clean();
Generate a queue from newsletter methods, close the connection and then do the expensive mail sending action asynchronously. ## Proof of concept ```php ob_end_clean(); header("Connection: close\r\n"); header("Content-Encoding: none\r\n"); ignore_user_abort(true); ob_start(); echo ('Text user will see'); $size = ob_get_length(); header("Content-Length: $size"); ob_end_flush(); flush(); ob_end_clean(); ```
DrMaxNix added this to the v1.1 milestone 2024-02-19 22:36:10 +01:00
DrMaxNix added the
difficulty
1medium
feature
idea
labels 2024-02-19 22:36:10 +01:00
DrMaxNix self-assigned this 2024-02-19 22:36:10 +01:00
DrMaxNix started working 2024-02-20 15:35:52 +01:00
DrMaxNix stopped working 2024-02-20 15:54:22 +01:00
18 minutes 30 seconds
DrMaxNix started working 2024-02-20 15:56:54 +01:00
DrMaxNix stopped working 2024-02-20 17:05:28 +01:00
1 hour 8 minutes
DrMaxNix added spent time 2024-02-20 17:47:44 +01:00
20 minutes
DrMaxNix started working 2024-02-20 17:47:45 +01:00
DrMaxNix stopped working 2024-02-20 18:22:19 +01:00
34 minutes 34 seconds
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Total Time Spent: 2 hours 21 minutes
DrMaxNix
2 hours 21 minutes
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kimendisch/sbgg.jetzt#62
No description provided.