title: How to solve the Sendgrid STMP Error 250 response in Laravel
body: <p>I am using Sendgrid for the mail service.</p>
  <p>My Account is two factor authentication is enabled.</p>
  <p>My .env</p>
  <pre><code>MAIL_DRIVER=smtp
  MAIL_HOST=smtp.sendgrid.net
  MAIL_PORT=587
  MAIL_USERNAME=S4gYKuoPRBaOAy7qT__J8w
  MAIL_PASSWORD=SG.APIKEYPASSWORD
  MAIL_ENCRYPTION=tls
  MAIL_FROM_NAME=&quot;Xyz Name&quot;
  MAIL_FROM_ADDRESS=xyz@xyz.com
  </code></pre>
  <p>If I execute the mail then I am getting below error.</p>
  <p><strong>Swift_TransportException : Failed to authenticate on SMTP server with username &quot;S4gYKuoPRBaOAy7qT__J8w&quot; using 2 possible authenticators. Authenticator LOGIN returned Expected response code 250 but got an empty response. Authenticator PLAIN returned Expected response code 250 but got an empty response.</strong></p>
  <p>And If I disable the two-factor authentication then it works with the UserName and Password of the account but sendgrid will suspend my account if I do it like this.</p>
  <p>Can anyone faced this issue. if yes then please let me know how you solved the problem.</p>