Category: smtp

How to send smtp email from Command using Swiftmailer with Symfony

I have a problem sending my emails with Symfony. swiftmailer.yaml swiftmailer: default_mailer: gmail_api mailers: gmail_api: transport: gmail_api As you can see I’m not using the spooling. My emails are sent correctly from Controller but not from Command. From Controller, send()…

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]: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…