title: Expected response code 220 but got code "", with message "" in Laravel
body: <p>I am using Laravel Mail function to send email. The following is my <code>app/config/mail.php</code> file settings.</p>
  
  <pre><code>'driver' =&gt; 'sendmail',
  'host' =&gt; 'smtp.gmail.com',
  'port' =&gt; 587,
  'from' =&gt; array('address' =&gt; 'email@gmail.com', 'name' =&gt; 'MyName'),
  'encryption' =&gt; 'tls',
  'username' =&gt; 'myUsername',
  'password' =&gt; "password",
  'sendmail' =&gt; '/usr/sbin/sendmail -bs',
  'pretend' =&gt; false,
  </code></pre>
  
  <p>Controller Mail Method</p>
  
  <pre><code>//Send Mail     
  Mail::send('sendMail', array('key' =&gt; 'value'), function($message)
  {
      $message-&gt;to('EmailId@hotmail.com', 'Sender Name')-&gt;subject('Welcome!');
  });
  </code></pre>
  
  <p>When I run the code it gives me following error message:</p>
  
  <blockquote>
    <p>Swift_TransportException</p>
    
    <p>Expected response code 220 but got code "", with message ""</p>
  </blockquote>
  
  <p>I have created a <code>SendMail.php</code> file in view which contains some data.</p>
  
  <p>How do I resolve this error message?</p>