title: stream_socket_enable_crypto(): Peer certificate CN=`cs723.mojohost.com' did not match expected CN=`smtp.sendgrid.net'
body: <p>We are attempting to send an autoresponder email to new members.  We're using the same configuration on other sites on the same server with no issue. Upon sending the email the following error is returned:</p>
  
  <blockquote>
    <p>stream_socket_enable_crypto(): Peer certificate CN=<code>cs723.mojohost.com</code> did not match expected CN=<code>smtp.sendgrid.net</code></p>
  </blockquote>
  
  <p><a href="https://gyazo.com/ffb0cb7645d51ed21ecc863f1e3196b2" rel="noreferrer">https://gyazo.com/ffb0cb7645d51ed21ecc863f1e3196b2</a></p>
  
  <p>We're using Laravel with connecting to:
  smtp.sendgrid.net 
  port - 587 
  encription using TLS</p>
  
  <p>We have tried the following with no success:</p>
  
  <ul>
  <li>port options 25 &amp; 2525 (returns a different error <a href="https://gyazo.com/3d42107c6aa66acc2fbe582b3a6a352e" rel="noreferrer">https://gyazo.com/3d42107c6aa66acc2fbe582b3a6a352e</a>)</li>
  <li>reconfigured Laravel to send <code>AUTH</code> command before <code>MAIL FROM</code> command (returns same different error 250)</li>
  </ul>
  
  <p>Additionally we are unable to connect via PUTTY. We verified the SSH permissions are correct with MojoHost.</p>
  
  <p>I've read in a different post that</p>
  
  <blockquote>
    <p>The correct fix for this is to replace the invalid, misconfigured or self-signed certificate with a good one.</p>
  </blockquote>
  
  <p>Attempted that with no success either.  Hoping someone can provide some helpful insight. Going on a week now of trying to solve this....</p>
  
  <p>Thanks,
  Mike</p>