Closed (fixed)
Project:
Commerce Email
Version:
8.x-1.x-dev
Component:
User interface
Priority:
Major
Category:
Feature request
Assigned:
Issue tags:
Reporter:
Created:
14 Sep 2022 at 06:16 UTC
Updated:
28 May 2024 at 10:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dhruvr commentedComment #3
ayalon commentedThe first patch contains another fix #3314082. I removed it to able to apply both seperate.
Also, the schema was incorrect. I created a cleaned up version. Also supporting the transition of existing text only templates.
Comment #4
rszrama commentedRetitling. If we can get WYSIWYG support here, that'd be awesome. I just wonder if we need to ensure the site is configured to send HTML email before supporting anything other than plain text.
Comment #5
rgnyldz commentedAfter this patch I'm getting the below error when an email is sent with commerce_email on a status change for example;
Error: Call to a member function fromArray() on null in Drupal\symfony_mailer\MailManagerReplacement->mail() (line 89 of modules/contrib/symfony_mailer/src/MailManagerReplacement.php).
Using commerce_email v1.1
Comment #6
mayaslatinek commentedI've tested the patch from #3 with v8.x-1.1 on Drupal 10.1.2 and can confirm it works well with the Symfony mailer. The formatted text set in the email configs is seen in the email received.
Comment #8
karengrey commentedComment #10
karengrey commentedI have updated the patch based on Ryan's suggestion to check if the site is setup for HTML email. I have added a check for symfony_mailer, as this is the suggested module to use for HTML emails (swiftmailer has been unsupported since November 2021)
I have also included all text formats, so the user has a choice.
I saw no other config available to check if a site is setup to use HTML email, as Core MailManager only returns the default `php_mail` interface.
Comment #12
vmarchuk@rszrama
I don't really want to stick with modules that support HTML email (symfony_mailer or whatever), but give users the choice to figure this out themselves. Also, we probably need to add a good description for the Body field.
Comment #14
vmarchukCommitted!
Comment #15
dhruvr commentedThank you vmarchuk
Comment #17
nick_sh commentedCan this be the cause of issue with missing BODY field in translations? Only label and subject