I'm experimenting with using HTML files in the "Send Mail" wappler component. Sending works with my provider, but when viewing the email, Gmail is not showing it how I've designed it in wappler.
I have the mail body set to "file" in the Send Mail component. I selected the email template I created, and set the format to HTML. I do not have my own html, head, or body tags defined in my template, just some CSS and the body of the email. It looks great in wappler, and I receive the email, it's just showing up as non-formatted HTML (it has links that work).
Digital Ocean sends me HTML formatted emails often. I noticed they have "Content-Type: multipart/alternative;" in the headers whereas wappler uses "Content-Type: text/html; charset=utf-8". AI suggests the multipart/alternative is the proper MIME type for most email clients.
Suggestions? What have you done to get formatted emails to show up correctly in email clients from wappler?
The HTML and BODY tags are being removed by Wappler prior to sending. When I inspect the raw output of the sent email in my gmail client, these tags are missing. When I reopen the HTML email template file in my Wappler project, those tags are now missing from the file.
Even though the email template file has the HTML, HEAD, and BODY tags still in it, they appear to be removed during processing of the Send Mail component
And in other clients you see it fine, it's just gmail?
Have you tried sending this email template using another service and not send mail step in Wappler? If yes is the result the same?
I sent the email to Hotmail, which rendered it correctly. However, the HTML, HEAD, and BODY tags were again missing in the message source so it was Hotmail that decided to render the mail as I intended.
This does still look like an issue with the Send Mail component at execution time. I've already filed a bug showing how to get Wappler to delete these HTML tags just by editing the template from within Send Mail.