Welcome Guest, Not a member yet? Register   Sign In
Slow bulk email via Gmail
#1

[eluser]nextexile[/eluser]
Trying to think of solutions that could be implemented without a large amount of reworking of the existing codebase.

We have multiple instances where a user form submission triggers a bulk email script and the entire website waits for the completion. It's not a long delay but noticeable enough to worsen the user experience.

I know that I could probably push these to a database and then use a cron but I'm curious about other options. Has anyone faced this before or found an elegant solution?
#2

[eluser]CroNiX[/eluser]
I usually use CURL to send a POST request to a controller/method that does the extra processing (bulk email processing) and then not wait for a response back. The user experiences no delay.
#3

[eluser]nextexile[/eluser]
Thanks for a quick reply! That's perfect.




Theme © iAndrew 2016 - Forum software by © MyBB