Mailgun Connection timed out, while not using Mailgun driver.

Hi,

I'm getting the following error when trying to send out mails

Swift_TransportException: Connection to tcp://smtp.mailgun.org:465 Timed Out in /var/www/assessment/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:404

I removed everything I could relating to Mailgun and it's still throwing this error, any idea what might be going on here?

This is my .env

MAIL_DRIVER=ses
MAIL_HOST=email-smtp.eu-west-1.amazonaws.com
MAIL_PORT=587
MAIL_USERNAME=#secretusername#
MAIL_PASSWORD=#secretpassword#
MAIL_ENCRYPTION=tls

this is my config/mail.php

'driver' => env('MAIL_DRIVER', 'smtp'),
'host' => env('MAIL_HOST'),
'port' => env('MAIL_PORT', 587),
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
'sendmail' => '/usr/sbin/sendmail -bs',
notflip
notflip
  • 1 week ago