-
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
Support both Text & HTML in the same email #14715
base: main
Are you sure you want to change the base?
Conversation
@Mike4tel could you please try to send via |
@hishamco Html - OK |
All or Both make sense to me
This will revert the changes and let the body |
@sebastienros are we fine to add two bodies into the One option if we use |
Just pointing out that only stripping html will not let users format text nicely for plain text.. it is needed for good marketing. But I can see using stripped html version as another feature just to fight spam filters. |
Is it possible to merge this one? :) |
We forgot this one :) I will do a final review and then merge |
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.
@hishamco what is the problem that you are trying to solve? Why would we need All
as an enum value?
Maybe we should have an interface for the message like INotificationMessage
which we already have. Or something similar
public interface IEmailMessage
{
string Message { get; }
bool IsHtml { get; }
}
I don't think so, the issue was the email can be sent in both formats. In the past we already had |
This pull request has merge conflicts. Please resolve those before requesting a review. |
This pull request has merge conflicts. Please resolve those before requesting a review. |
# Conflicts: # src/OrchardCore.Modules/OrchardCore.Email/Controllers/AdminController.cs # src/OrchardCore.Modules/OrchardCore.Users/Controllers/EmailAuthenticatorController.cs # src/OrchardCore/OrchardCore.Email.Core/Services/SmtpService.cs
I will revise this soon |
# Conflicts: # src/OrchardCore.Modules/OrchardCore.Users/Controllers/EmailAuthenticatorController.cs # src/OrchardCore.Modules/OrchardCore.Users/Extensions/ControllerExtensions.cs # src/OrchardCore.Modules/OrchardCore.Users/Workflows/Activities/RegisterUserTask.cs # src/OrchardCore/OrchardCore.Email.Abstractions/MailMessage.cs # src/OrchardCore/OrchardCore.Notifications.Core/Services/EmailNotificationProvider.cs # src/docs/releases/1.9.0.md # test/OrchardCore.Tests/Email/EmailTests.cs
@MikeKry could you please do one more test if you have time |
This pull request has merge conflicts. Please resolve those before requesting a review. |
This pull request has merge conflicts. Please resolve those before requesting a review. |
for instructions on how to resolve the merge conflicts due to #16572 please follow the step listed in this comment. |
It seems that this pull request didn't really move for quite a while. Is this something you'd like to revisit any time soon or should we close? Please comment if you'd like to pick it up. |
Seems I need to revisit this soon |
It seems that this pull request didn't really move for quite a while. Is this something you'd like to revisit any time soon or should we close? Please comment if you'd like to pick it up. |
Just a random idea, why not have two tasks, TextEmailTask and HtmlEmailTask. They can have a base class because some people seem to like these ;) and then special case how to render and edit the value. And since breaking change is important, the current task could keep being what it does by default. |
I think the main idea here is to have both body types in a single email. Even though it's not that common nowadays, it still is a valid feature IMHO. |
I worked locally on this several days ago to fix the conflict then stopped because I'm sick. Hope to finalize this ASAP |
# Conflicts: # src/OrchardCore.Modules/OrchardCore.Email/Workflows/Activities/EmailTask.cs # src/OrchardCore.Modules/OrchardCore.Email/Workflows/Drivers/EmailTaskDisplayDriver.cs # src/OrchardCore.Modules/OrchardCore.Email/Workflows/ViewModels/EmailTaskViewModel.cs # src/OrchardCore/OrchardCore.Email.Abstractions/MailMessage.cs # test/OrchardCore.Tests/Modules/OrchardCore.Email/Workflows/EmailTaskTests.cs
@MikeKry could please do one more test, this PR takes so long, we need to review it and merge it ASAP |
/cc @MikeKry