title: How to change mail configuration before sending a mail in the controller using Laravel?
body: <p>I'm using Laravel 4, I would like to change the mail configuration (like driver/host/port/...) in the controller as I would like to save profiles in databases with different mail configuration. This is the basic send mail using configuration from config/mail.php</p>
  
  <pre><code>Mail::send(
      'emails.responsable.password_lost',
      array(),
      function($message) use ($responsable){
          $message-&gt;to($responsable-&gt;email, $responsable-&gt;getName());
          $message-&gt;subject(Lang::get('email.password_lost'));
      });
  </code></pre>
  
  <p>I've tried to put something like but it didn't work</p>
  
  <pre><code> $message-&gt;port('587');
  </code></pre>
  
  <p>Thanks for your support!</p>
  
  <p>Jean</p>