Getting 504 gateway timeout on sending email using phpmailer

this is my website:

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

Did you read?


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.


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