I am using Mailgun, it was working fine locally (Xampp) but when i deployed app to server it is throwing this error.
Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.mailgun.org [Connection timed out #110]
PS : I tried some answers, by changing encryption_type to tls and replacing smpt with IP but none work.
.env
MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailgun.org
MAIL_PORT=587
MAIL_USERNAME=mailgunSMTPLogin
MAIL_PASSWORD=password
MAIL_ENCRYPTION=null