title: laravel mail internal server error 500 after putting online
body: <p>my mail worked (and still works) perfectly on my localhost. Now ive put my project to a dedicated server. And now when i try to mail i get "internal server error 500" and nothing more of detail.</p>
  
  <p>I kept the same details, and changed nothing.</p>
  
  <p>When i create an error in mail mail template it gives there an error so it really loops trough the mail function.</p>
  
  <p>some of my settings:</p>
  
  <pre><code>'host' =&gt; 'smtp.gmail.com',
  'port' =&gt; 465,
  'from' =&gt; array('address' =&gt; "myemail@gmail.com", 'name' =&gt; "my name"),
  'encryption' =&gt; 'ssl',
  </code></pre>
  
  <p>etc...
  now there is 1 setting that i dont know if it has to change:</p>
  
  <pre><code>'sendmail' =&gt; '/usr/sbin/sendmail -bs',
  </code></pre>
  
  <p>and in my controller:</p>
  
  <pre><code>      Mail::send('emails.shop', $data, function($message) 
       {
           $message-&gt;to("anEmail@gmail.com", 'hi')-&gt;subject('Service formulier ');
      });
  </code></pre>
  
  <p>Someone knows whats wrong?
  (if needed i can give some more details)</p>
  
  <p>i have a password and username set, but just didnt put it here, and it works on localhost with the password and username</p>
  
  <p>update:
  tested with tls and port 587  and didnt work</p>
  
  <p>update2:</p>
  
  <p>the logs: 
  [Wed Dec 03 19:24:52 2014] [error] [client 91.181.50.243] FastCGI: comm with server "/var/www/cgi-bin/php5-mywebsite-fcgi" aborted: idle timeout (30 sec), referer: “”mywebsite””
  [Wed Dec 03 19:24:52 2014] [error] [client 91.181.50.243] FastCGI: incomplete headers (0 bytes) received from server "/var/www/cgi-bin/php5-mywebsite-fcgi", referer: “”mywebsite””</p>