-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Need more email servers for INotificationMethodProvider #17298
Comments
Thank you for submitting your first issue, awesome! 🚀 We're thrilled to receive your input. If you haven't completed the template yet, please take a moment to do so. This ensures that we fully understand your feature request or bug report. On what happens next, see the docs. If you like Orchard Core, please star our repo and join our community channels. |
The Can you please explain what's the exact scenario this doesn't cover? Why do you want to attempt to send e-mails via multiple alternative services? What is the problem you're trying to solve? |
i want to send the email by gmail first which is free, if it failed , Azure Communication Services, if failed , other paid service, reasonable? |
It's certainly a unique ask. However, it's something you can implement with some coding. Take a look at how this pipeline works by starting from here: OrchardCore/src/OrchardCore/OrchardCore.Email.Core/Services/DefaultEmailService.cs Line 27 in f59c1be
And here you can see that it's possible to loop through the registered providers: OrchardCore/src/OrchardCore/OrchardCore.Email.Core/Services/DefaultEmailProviderResolver.cs Line 31 in f59c1be
Based on this, you can implement a new That being said, I'd rather recommend you use a reliable e-mail service. |
thanks for the suggestion. another similar question about SMS, HOW can we deal with that? |
It's the same pattern. Check out |
Is your feature request related to a problem?
Describe the solution you'd like
inside, INotificationMethodProvider , we can add more email services to send the email, if first one get success, break it. in this way, we can guarantee the success of sending the email and the user can choose their preferred email server.
Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: