Getting 504 gateway timeout on sending email using phpmailer

this is my website: https://the-techpointacademy.epizy.com/

While sending email, the website keep loading after some time the error message show that 504 getway timeout nginx

Did you read?

2 Likes

but i am using third party library phpmailer

If you just say that it does not work, we can’t help you. What is the error message? What is the code (hide passwords)

1 Like

The 504 Gateway Timeout could mean that your PHP script takes too long to complete. If this happens only while sending the email, it could mean your mail server is down, unreachable or just really, really slow.

You may want to drop the PHPMailer Timeout settings to something lower (e.g. 30 seconds) so it will be stopped before our servers kill the connection.

http://phpmailer.github.io/PHPMailer/classes/PHPMailer-PHPMailer-PHPMailer.html#property_Timeout

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.