title: How to send mail with laravel through gmail smtp?
body: <p>I want to make contact Us page in my website, i have successfully do it with mailtrap, but when i want to send with gmail smtp server , i receive nothing and i get no error. 
  this is my .env mail config :</p>
  
  <pre><code>MAIL_DRIVER=smtp
  MAIL_HOST=smtp.gmail.com
  MAIL_PORT=465
  MAIL_USERNAME=myemail
  MAIL_PASSWORD=my_app_password
  MAIL_ENCRYPTION=ssl
  </code></pre>
  
  <p>and code i use to send email:</p>
  
  <pre><code>    $obj=new \stdClass();       
      $obj-&gt;contenu=$request-&gt;input('contenu');
      $obj-&gt;objet=$request-&gt;input('objet');
      $obj-&gt;email=$request-&gt;input('email');
      $data=array('contenu'=&gt;$obj-&gt;contenu,'email'=&gt;$obj-&gt;email);
      Mail::send("front.contactUs",$data,function ($message) use ($obj){
          $message-&gt;from($obj-&gt;email);
          $message-&gt;to('salondesbelleslettres@gmail.com')
                  -&gt;subject($obj-&gt;objet);
      });
      if(count(Mail::failures())&gt;0){
          return redirect()-&gt;back()-&gt;with('error','Votre demande na pas ete soumise');
      }else{
          return redirect()-&gt;back()-&gt;with('success','Merci de Nous Avoir Contacté');
      }
  </code></pre>
  
  <p>Thanks.</p>