nette / mail

A handy library for creating and sending emails in PHP
https://doc.nette.org/mailing
Other
469 stars 71 forks source link

Mail: added DKIM signer #51

Closed lukaspijak closed 5 years ago

lukaspijak commented 6 years ago

Hello,

this is the implementation of DKIM signatures into emails, see https://en.wikipedia.org/wiki/DomainKeys_Identified_Mail

In Nette is problematic to implement this feature, so I'd like to help it.

$sender = new Nette\Mail\SendmailMailer();

$sender->setSigner(new Nette\Mail\DkimSigner([
    'domain' => 'nette.org',
    'selector' => 'key1',
    'privateKey' => '__PRIVATE_KEY__',
], [
    'To', 'From', 'Subject', 'Date'
]));

$sender->send(new Nette\Mail\Message());
dg commented 6 years ago

Oh, thanks!