Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Mailer] Sending to a blocked email address through Postmark #50165

Closed
@TristanPouliquen

Description

@TristanPouliquen

Description

Hello,

When integrating Postmark to our stack to send emails, we noticed that if we send an email to an address that has been suppressed by Postmark (previous hard bounce, unsubscribe, spam...), the Postmark API throws an exception that is not catched by the Mailer component and comes from the PostmarkApiTransport through to the SendEmailHandler.

As of today, we decorated the SendEmailHandler to add a try/catch & dispatch a message as if we had received a webhook for a EmailDeliveryEvent::DROPPED event, but this seems hacky.

Is it an issue that would be interesting to solve in the Symfony code? If yes, do you have an idea on how to go at it in the best way?

Example

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions