So I just moved to a new VPS host and the PHP Mail function basically never ends (although oddly enough it usually sends the email).
I set this in my php.ini: sendmail_path = /usr/sbin/sendmail -i -t
Anyone have any ideas why this would be taking so long? I even set a start/end variable and printed the time in between and it's literally 60 seconds.
Anyone have any ideas?
Mail functions in php is script are slow but 60 sec is too much. Best way is to insert the mail to be sent in Database and send them via cron later (every 2 min). Using Mail queue technique.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With