Closed
Description
Description
With this PR: #33967
The messageId provided by the providers is stored in the SentMessage object that is returned by the TransportInterface
I can't find a way to get it (the SentMessage) using directly the MailerInterface as:
- It is not returned (obviously, it can't because the mail can be sent async)
- I can't find an event that is launched when the mail is actually sent with the SentObject as a parameter (maybe I am missing something?)
Is it possible to add an Event that is sent with a way to retrieve the final messageId?
Some providers use this messageId to deliver statistics information about the mails (It has soft/hard bounced? The mail is opened? / ...) so I want to be able to store it somehow
If there is no way to get it actually, I could try to provide a PR to add this feature.