mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-29 14:36:22 +00:00
666 B
666 B
id | title |
---|---|
fd4d659f-01f1-4246-87ec-b8073a363402 | DKIM Email Authentication |
Description
DKIM1 is supported by the Mailer Component. There is also documentation2.
Syntax
use Symfony\Component\Mime\Crypto\DkimSigner;
use Symfony\Component\Mime\Email;
$email = (new Email())
->from('hello@example.com')
// ...
->html('...');
$signer = new DkimSigner('file:///path/to/private-key.key', 'example.com', 'sf');
$signedEmail = $signer->sign($email);