Skip to content

[Mime] Add DKIM support #37165

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 10, 2020
Merged

[Mime] Add DKIM support #37165

merged 1 commit into from
Jun 10, 2020

Conversation

fabpot
Copy link
Member

@fabpot fabpot commented Jun 9, 2020

Q A
Branch? master
Bug fix? no
New feature? yes
Deprecations? no
Tickets Fix #36014
License MIT
Doc PR not yet
$dkimSigner = new DkimSigner($pk, 'example.com', 'sf');
$signedEmail = $dkimSigner->sign($email);

You can also pass options:

$dkimSigner = new DkimSigner($pk, 'example.com', 'sf');
$signedEmail = $dkimSigner->sign($email, (new DkimOptions())
    ->bodyCanon('relaxed')
    ->headerCanon('relaxed')
    ->headersToIgnore(['Message-ID'])
    ->toArray()
);

@fabpot fabpot mentioned this pull request Jun 9, 2020
@fabpot fabpot force-pushed the mailer-dkim branch 2 times, most recently from 0d2f9e0 to e13d2e7 Compare June 9, 2020 08:53
@nicolas-grekas nicolas-grekas added this to the next milestone Jun 9, 2020
@fabpot fabpot force-pushed the mailer-dkim branch 4 times, most recently from 52c9112 to 683e030 Compare June 9, 2020 11:34
@fabpot fabpot force-pushed the mailer-dkim branch 3 times, most recently from 8a9d0c7 to ae28de7 Compare June 9, 2020 15:48
@fabpot fabpot force-pushed the mailer-dkim branch 6 times, most recently from c864284 to 4b475ed Compare June 9, 2020 21:23
@fabpot fabpot merged commit d1b014a into symfony:master Jun 10, 2020
@fabpot fabpot deleted the mailer-dkim branch June 10, 2020 10:50
@nicolas-grekas nicolas-grekas removed this from the next milestone Oct 5, 2020
@nicolas-grekas nicolas-grekas added this to the 5.2 milestone Oct 5, 2020
@fabpot fabpot mentioned this pull request Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Mailer] - DKIM Signer
4 participants