title: Laravel: Mail connection error
body: <p>i have a laravel 5.2 project working in a BLUEHOST shared server, and i having troubles configuring my email app, i'm not using another mail service (like mailgun) just the laravel's service, i tried it with my gmail account and their configurations and this worked fine (just for testing), so i need setup it with the BLUEHOST mail service.</p>
  
  <p>I have this data form my email account configuration provided by BLUEHOST:</p>
  
  <pre><code>Email Settings
  
  Mail Server Username: info@domain.com
  
  Standard (without SSL)
  
  Incoming Mail Server: mail.domain.com
  Supported Ports: 143 (IMAP), 110 (POP3)
  Outgoing Mail Server: mail.domain.com
  Supported Port: 26 (server requires authentication)
  
  Private (with SSL)
  
  Incoming Mail Server: box668.bluehost.com (SSL)
  Supported Ports: 993 (IMAP), 995 (POP3)
  Outgoing Mail Server: box668.bluehost.com (SSL)
  Supported Port: 465 (server requires authentication)
  Supported Incoming Mail Protocols: POP3, IMAP
  Supported Outgoing Mail Protocols: SMTP
  </code></pre>
  
  <p>My config/mail.php:</p>
  
  <pre><code>&lt;?php
  
  return [
  
      'driver' =&gt; env('MAIL_DRIVER', 'smtp'),
  
      'host' =&gt; env('MAIL_HOST', 'mail.domain.com'),
  
      'port' =&gt; env('MAIL_PORT', 465),
  
      'from' =&gt; ['address' =&gt; 'info@domain.com', 'name' =&gt; 'Some name'],
  
      'encryption' =&gt; env('MAIL_ENCRYPTION', 'ssl'),
  
      'username' =&gt; env('MAIL_USERNAME'),
  
      'password' =&gt; env('MAIL_PASSWORD'),
  
      'sendmail' =&gt; '/usr/sbin/sendmail -bs',
  
  ];
  </code></pre>
  
  <p>My .env email setup:</p>
  
  <pre><code>MAIL_DRIVER=smtp
  MAIL_HOST=mail.domain.com
  MAIL_PORT=465
  MAIL_USERNAME=info@domain.com
  MAIL_PASSWORD=info123+
  MAIL_ENCRYPTION=ssl
  </code></pre>
  
  <p>I tried both options (Standard (without SSL) and Private (with SSL)) however i got this error:</p>
  
  <pre><code>Swift_TransportException in StreamBuffer.php line 269:
  Connection could not be established with host mail.domain.com [ #0]
  </code></pre>
  
  <p>What's wrong? or my customer must buy a Mailgun's subscription? </p>