title: Check mail is sent successfully or not on Laravel 5
body: <p>I have a function that can send mail on Laravel5 using this</p>
  
  <pre><code>/**
   *  Send Mail from Parts Specification Form
   */
   public function sendMail(Request $request) {
      $data = $request-&gt;all();
  
      $messageBody = $this-&gt;getMessageBody($data);
  
      Mail::raw($messageBody, function ($message) {
          $message-&gt;from('yourEmail@domain.com', 'Learning Laravel');
          $message-&gt;to('goper.zosa@gmail.com');
          $message-&gt;subject('Learning Laravel test email');
      });
  
      return redirect()-&gt;back();
   }
  
   /**
    * Return message body from Parts Specification Form
    * @param object $data
    * @return string
    */
   private function getMessageBody($data) {
  
      $messageBody = 'dummy dummy dummy dummy';
   }
  </code></pre>
  
  <p>and is sent successfully. But how to check if it was sent or not? Like</p>
  
  <pre><code>if (Mail::sent == 'error') {
   echo 'Mail not sent';
  } else {
   echo 'Mail sent successfully.';
  }
  </code></pre>
  
  <p>I'm just guessing that code.</p>