-
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
Add ISmtpService extension methods #14772
Conversation
@MikeAlhayek please review if you have time, just simple extension methods to simplify sending the emails |
@hishamco |
Seems the Azure Email will takes so long after the tons of feedback :) |
This pull request has merge conflicts. Please resolve those before requesting a review. |
src/OrchardCore/OrchardCore.Email.Abstractions/Extensions/EmailServiceExtensions.cs
Outdated
Show resolved
Hide resolved
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.
This will need to wait for #14715.
src/OrchardCore/OrchardCore.Email.Abstractions/Extensions/EmailServiceExtensions.cs
Outdated
Show resolved
Hide resolved
This pull request has merge conflicts. Please resolve those before requesting a review. |
I need to merge this if no one has any comment because I need to continue on PR #14715 |
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'm otherwise OK with this, @MikeAlhayek?
If we'll also merge #14715 then this extension's signature will need to be changed too, but OK.
src/OrchardCore/OrchardCore.Email.Abstractions/Extensions/EmailServiceExtensions.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore/OrchardCore.Email.Abstractions/Extensions/EmailServiceExtensions.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore/OrchardCore.Email.Abstractions/Extensions/EmailServiceExtensions.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore/OrchardCore.Notifications.Core/Services/EmailNotificationProvider.cs
Show resolved
Hide resolved
Co-authored-by: Zoltán Lehóczky <[email protected]>
Co-authored-by: Zoltán Lehóczky <[email protected]>
Co-authored-by: Zoltán Lehóczky <[email protected]>
Co-authored-by: Zoltán Lehóczky <[email protected]>
I am good with that one extension. |
src/OrchardCore.Modules/OrchardCore.Users/Controllers/EmailAuthenticatorController.cs
Show resolved
Hide resolved
@MikeAlhayek the last refactoring looks much better |
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 don't think the last commit brings any value but makes the code more complex. I'm OK with the code before that.
I don't think so :) I'm not sure why we need two methods that do the exact thing except one for the subject and the other for the body |
The difference boils down to the fact that instead of having a |
I will revert back to the last commit and then merge |
This reverts commit 903a901.
No description provided.