title: sending email in Laravel 5 with google apps account does not work
body: <p>i am now building one quite big sized enterprise grade web application on our production server.</p>
  
  <p>while i was developing on local development server, sending mail was not a big concern, but in the live step it became a big pain in my butt.</p>
  
  <p>i've searched like more than 3days and tried to use mandrill, postfix and sendmail driver options in the Laravel, still i could not get it happen.</p>
  
  <p>so anyone, who experienced developing sending emails on Laravel with google apps account???</p>
  
  <pre><code>APP_DEBUG=true
  APP_KEY=my app key
  
  MAIL_DRIVER=smtp
  MAIL_HOST=smtp.mandrillapp.com
  MAIL_USERNAME=admin@themandarin.co.kr
  MAIL_PASSWORD=my api key
  </code></pre>
  
  <p>above is my .env file of the web application</p>
  
  <p>and log shown below is the log, when the mail send fails</p>
  
  <blockquote>
    <p>[2015-07-02 17:56:16] production.ERROR: exception 'Swift_TransportException' with message 'Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at^M
    535 5.7.8  <a href="https://support.google.com/mail/answer/14257" rel="nofollow">https://support.google.com/mail/answer/14257</a> gs7sm4872423pbc.6 - gsmtp^M
    "' in /home/thecorp-admin/Services/TheMandarin/Trinity/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:383
    Stack trace:</p>
  </blockquote>
  
  <p>just incase i will provide some useful information.</p>
  
  <p>above shown link does not work with google apps accounts</p>