Welcome Guest, Not a member yet? Register   Sign In
[solved] Delay in ajax response time
#11

(10-23-2017, 04:32 PM)skunkbad Wrote:
(10-22-2017, 11:28 PM)wolfgang1983 Wrote:
(10-22-2017, 11:02 PM)skunkbad Wrote: I use a mail queue for all my websites. It's really an essential thing. As long as you have access to cron:

1) Instead of sending the email, put it in a database table with one field "sent" set to 0;
2) Use cron to check for email that hasn't been sent, send it, then update the "sent" field to 1; (I have cron check for unsent email once per minute)

This type of behavior has a lot of advantages. For one, you can always check if mail is going out. Also, it's really easy to resend email just by marking "sent" as 0 again. There is 0 email sending lag time, because it's being put in a queue.

Not sure how to use cron at all.

Everyone has to learn sometime:
https://www.educba.com/linux-crontab/

All done now. I had to use my website because my localhost xampp not the best for cron using the cpanel on cron job was easier.
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply
#12

Thanks to every for your suggestions. I am using cron now on my main website as my xampp / windows does not let me set cron up well but if I use
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply




Theme © iAndrew 2016 - Forum software by © MyBB