Description
Description
Currently the recommended workflow for signing emails (DKIM or S/MIME) is to sign the message in a controller/service/wherever and then use the Mailer to send that signed message rather than the original unsigned message.
This causes a broken signature when sending a TemplatedEmail
(see issue [Mailer] Signing email is not working with templated email) - seemingly because the signing is done in the controller/service/whatever but the rendering of the template is done in a listener when the mail is sent.
Perhaps the solution to this would be for signing (and S/MIME encryption) to also be performed by a listener at the time of sending, to run after the TemplatedEmail
has been rendered. Given that DKIM feels more and more like a must-have feature of sending emails perhaps it is time to integrate it into the Mailer component, i.e. the DKIM options would become options of the Mailer component.
Example
No response