Skip to content

Commit

Permalink
Added sign algorithm and identity setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaly Baev committed Sep 9, 2016
1 parent ce13400 commit 9cccd11
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ class Message extends \Illuminate\Mail\Message
public function attachDkim($selector, $domain, $privateKey)
{
$signer = new Swift_Signers_DKIMSigner($privateKey, $domain, $selector);
$signer->setHashAlgorithm(config('mail.dkim_algo', 'rsa-sha256'));
if (config('mail.dkim_identity')) {
$signer->setSignerIdentity(config('mail.dkim_identity'));
}
$this->swift->attachSigner($signer);

return $this;
Expand Down

0 comments on commit 9cccd11

Please sign in to comment.