Skip to content
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

Allow Postmark API exceptions to be thrown #1

Merged
merged 1 commit into from Dec 21, 2020

Conversation

purplespider
Copy link
Sponsor

Integrated changes from ActiveCampaign@91afdf3

To enable, add the following to config.yml:

SilverStripe\Control\Email\SwiftMailer:
  swift_plugins:
    - Postmark\ThrowExceptionOnFailurePlugin

This means if the send failed due to the Postmark API not returning a success response, it will error, rather than pretending the email had sent sucessfully.

@jonom jonom merged commit 3fda124 into jonom:swift5 Dec 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants