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