I am using the latest rc, 8.x-5.0-rc22.
Mail System settings

The Swift Mailer Settings

I also tried unchecking repect e-mail format.
Yet when I get the e-mail I get plain text:
<div style="font-family:Helvetica;font-size:16px;"> <p>Hello World</p>
It sounds like this was fixed in Swift Mailer no longer working after custom email handler theme option was added Did I miss something? or somehow everyone overlooked this...
The registration e-mails are theming & rendering HTML fine, so my issue has to be webform module related.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 3005843-9.patch | 2.15 KB | no sssweat |
| #6 | 3005843-6.patch | 2.12 KB | jrockowitz |
Comments
Comment #2
no sssweat commentedComment #3
jrockowitz commentedIt is possible that your webform email handler still has a 'theme' property which needed to be changed to 'theme_name'
Can you remove all email addresses, export, and attach your webform here?
Comment #4
no sssweat commentedThank you for looking into this Jacob, here is my export.
I also tried changing the theme_name value from default to my theme name, but still same result.
Also, I have added images & text to my /theme/THEMENAME/templates/swiftmailer.html.twig and I see none of that. Looks to me that swiftmailer.html.twig is not getting called by webform.
Comment #5
no sssweat commentedComment #6
jrockowitz commentedThe issue is being triggered by the 'formatter' is set to SwiftMailer and the 'sender' is set Sparkpost.
The EmailWebformHandler is examing the sender and not the formatter when converting the message body to Markup. This is a bug which no one ran into because most people are using SwiftMailer as 'formatter' and 'sender'
Comment #7
no sssweat commentedI have downloaded the latest dev, placed the patch file in /webform root folder.
When I try
git apply -v 3005843-6.patchI get
and then checked EmailWebformHandler.php and patch has not been applied.
Comment #8
no sssweat commentedI guess I'll manually apply it and then generate a new patch if it works.
Comment #9
no sssweat commentedThanks, these changes fixed the issue.
I have re-rolled the patch and tested it and it applies cleanly.
Comment #10
no sssweat commentedComment #12
no sssweat commentedComment #14
jrockowitz commented