Score:0

The tag is replaced by '*' character

ng flag

While sending out html emails that are configured to use the following template.

<p>Submitted on [webform_submission:created]</p>
<p>Submitted by: [webform_submission:user]</p>
<p>Submitted values are:</p>
[webform_submission:values:html]

The actual value returned is the following one.

*First Name*
Bobcares
*Last Name*
Developer
*Email*
[email protected] [1]
*Please let us know how we may help you*
Test

[1] mailto:[email protected]

I would expect it would render as follows.

<pre>
<b>First Name</b>
Bobcares
<b>Last Name</b>
Developer
<b>Email</b>
[email protected] [1]
<b>Please let us know how we may help you</b>
Test

[1] mailto:[email protected]
</pre>

I have installed the Mail System and the SMTP Authentication Support modules, selected HTML mails in the latter module and in Webform.

My guess is that something is converting the HTML mails to plain text in webform, but I am not able to find it.

Could anyone point me in the right direction?

Score:1
ng flag

After one more day of digging, I finally figured it out!

The issue was with the HTML Mail module, which was supposed to format the emails in HTML format, as the name said, required an Pear library, Mail Mime to format HTML mails. It was converting my HTML formatted emails into Plain Text and sending to the SMTP server.

It had nothing to do with Webform module.

I had set the sender and formatter same in the Mail System module, which apparently solved the issue.

fr flag
You didn't say you were using the HTML Mail module ...
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.