Symfony 4.4 Mailer Timeout

I’m using Mailer component for send email in Symfony and set env variables for MAILER_DSN

 [email protected]
 MAILER_PASSWORD=**************
 MAILER_DSN=smtp://$MAILER_USERNAME:[email protected]m:465

the emails was send but throw error for timeout:

request.CRITICAL: Uncaught PHP Exception
SymfonyComponentMailerExceptionTransportException: “Connection to
“ssl://mail.example.com:465″ timed out.”
at
path/path/vendor/symfony/mailer/Transport/Smtp/Stream/AbstractStream.php
line 81 {“exception”:”[object] (SymfonyComponentMailerExceptionTransportException(code: 0):
Connection to “ssl://mail.grandsocial.net:465″ timed out. at
path/path/vendor/symfony/mailer/Transport/Smtp/Stream/AbstractStream.php:81)”}
[]

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *