Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Commerce emails are not being sent as HTML
I have HTML mail 7.x-2.65 installed & configured.
I have 2 templates in /sites/all/themes/acquia_marina
htmlmail--htmlmail.tpl.php
htmlmail--variable_email--commerce_email_order.tpl.php
When I send a test email from HTML mail it works fine.
Comments
Comment #1
jonathan_hunt CreditAttribution: jonathan_hunt commentedI get the same: my instance of hook_email_alter() sees HTML but what is received is the HTML email converted to plain text.
Comment #2
jonathan_hunt CreditAttribution: jonathan_hunt commentedI resolved this by using the admin UI for Mail System (admin/config/system/mailsystem) to add a new setting mapping Variable Email module with key 'commerce_email_order' to HTMLMailSystem.
Comment #3
derekw CreditAttribution: derekw commented#2 worked for me as well, thanks.
Comment #4
xurizaemonYou beauty Jonathan, thanks for documenting this. Worked for me also.
Comment #5
jsheffers CreditAttribution: jsheffers commentedI gave #2 a try and it doesn't seem to work. It's pulling my HTMLMail template from
htmlmail--htmlmail.tpl.php
, but the content of the email is getting brought in plain text.Screenshot of mailsystem setup: http://cl.ly/image/3w3r261H0Z2Q
Comment #6
generalconsensus CreditAttribution: generalconsensus commentedIs this in the documentation yet?
Comment #7
rszrama CreditAttribution: rszrama at Centarro commented