Hello,
I have an issue with sending emails using PHPMailer + Gmail SMTP:
I have exactly the same code from PHPMailer using smtp.gmail.com and 587 port with TLS.
When I do a grace reboot and run the script it works fine and sends the email immediately without an issue. (I am also testing it with smtp.yandex.com it works as well).
However, the next day when I run the same script I got "SMTP connect () failed." error.
Any ideas how to debug this issue? I do not want to reboot the server everyday.
Thanks in advance for your suggestions.
Sincerely,
Aslan Ozcakir
I have an issue with sending emails using PHPMailer + Gmail SMTP:
I have exactly the same code from PHPMailer using smtp.gmail.com and 587 port with TLS.
When I do a grace reboot and run the script it works fine and sends the email immediately without an issue. (I am also testing it with smtp.yandex.com it works as well).
However, the next day when I run the same script I got "SMTP connect () failed." error.
Any ideas how to debug this issue? I do not want to reboot the server everyday.
Thanks in advance for your suggestions.
Sincerely,
Aslan Ozcakir