title: Laravel 5: Signing e-mail with DKIM
body: <p>In my project I'm trying to send e-mail through my own SMTP server using Laravel 5. I have everything set up correctly using the SMTP driver and I'm managing to send and receive e-mail fine.</p>
  
  <p>I want to get set up using DKIM. I've set up my public key and made it available in my DNS and I have a private key ready to start signing my messages.</p>
  
  <p>However, I can't find any documentation on how to set up DKIM signing using Laravel/Swift Mailer. I've managed to sign my e-mails with DKIM before in another non-Laravel project that used <code>PHPMailer</code> but can't find any way of doing it here. I've had a browse through <code>Illuminate\Mail\Message</code> and <code>Illuminte\Mail\Mailer</code> but can't find anything relevant.</p>
  
  <p>Does anyone know how to do this?</p>
  
  <p>Current example code:</p>
  
  <pre><code>public function handle(UserWasRegistered $event)
  {
      $user = $event-&gt;getUser();
  
      $this-&gt;mailer-&gt;send(['emails.users.welcome.html', 'emails.users.welcome.text'], ['user' =&gt; $user], function($message) use($user) {
          $message-&gt;subject('Welcome to XXXXXX');
          $message-&gt;to($user-&gt;email);
      });
  }
  </code></pre>
  
  <p>Ideally, I would like to be able to provide my DKIM private key in the config somewhere and have Laravel/Swift Mailer (Or write some code once) sign my messages for me.</p>
  
  <p>Cheers</p>