8000 [Mailer] Add a way to retrieve the SentMessage object · Issue #35670 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[Mailer] Add a way to retrieve the SentMessage object #35670
Closed
@mathieu-bourlet

Description

@mathieu-bourlet

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0