-
Notifications
You must be signed in to change notification settings - Fork 28
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
PAS-452 | Design generic fallback for e-mail providers & drop PostMark #636
PAS-452 | Design generic fallback for e-mail providers & drop PostMark #636
Conversation
@jonashendrickx we're not merging this until more work is done in PAS-452, right? |
This comment was marked as outdated.
This comment was marked as outdated.
…WS-SES-SendGrid # Conflicts: # src/AdminConsole/Pages/Organization/Create.cshtml.cs # src/AdminConsole/Pages/Organization/Verify.cshtml.cs # src/Common/Common.csproj # src/Common/Services/Mail/MailBootstrap.cs # src/Common/Services/Mail/MailConfiguration.cs
…AWS-SES-SendGrid' into PAS-452-Remove-Postmark-and-use-AWS-SES-SendGrid
if (!section.GetChildren().Any()) | ||
{ | ||
var fileProviderOptions = new FileMailProviderOptions(); | ||
o.Providers.Add(fileProviderOptions); | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should have a no-op mail provider in the default case. This may be useful in tests, where you don't care about emails at all and the app in the container may not have the permissions to have files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can add support for it later in the integration testing project
…AWS-SES-SendGrid' into PAS-452-Remove-Postmark-and-use-AWS-SES-SendGrid
Ticket
Description
This pull request removes support for Postmark.
Any e-mail provider, including Postmark, can still continue to be configured using SMTP. Read more here.
Shape
Features:
FileMailProvider
In the example below, we're able to attempt to send e-mails first using AWS SES using region us-west-2, if this fails, we fall back to AWS SES using region us-east-2. If that again fails, we attempt to send e-mails using SendGrid. Please note the example is purely hypothetical and ignores any vendor specific features such as the availability zones with redundant connections with AWS SES to guarantee minimum down-time.
If all configured attempts fail, an error will be thrown by the back-end.
Screenshots
Checklist
I did the following to ensure that my changes were tested thoroughly:
I did the following to ensure that my changes do not introduce security vulnerabilities: