title: getting this error stream_socket_enable_crypto(): Peer certificate CN=`srv112.hostserv.co.za' did not match expected CN=`smtp.office365.com'
body: <p>I am using sending mail function at laravel:</p>
  <pre><code>            Mail::send(
            'mail_send_currentopening', ['data' =&gt; $input],
            function($message)use($input, $path){
                    $message-&gt;to('tech@idigital.net','To noreply');enter code here
                    $message-&gt;subject('Current Openings');
                    $message-&gt;from('enquiries@mallsystems.co.za','Resume')`enter code here`;
                    $message-&gt;attach($path,array(
                      'as' =&gt; &quot;resume&quot;, // If you want you can chnage original name to custom name      
                      ));
                }
  </code></pre>