Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

HTML encoding in body of email

Started by Muut Archive 9 years ago · 1 replies · 753 views
9 years ago

I'm new to grav and I'm trying to build a simple email form using the form and email plugins.
I managed to send emails all right, but I get some HTML-encoded characters in the body of my messages.
This seems to only happen for single and double quotes. Accents and new lines work fine.

I tried with both of these settings in my form page's process :
body: "{% include 'forms/default/data.txt.twig' %}"
content_type: 'text/plain'

and
body: "{% include 'forms/default/data.html.twig' %}"
content_type: 'text/html'

And idea how I could fix that ?

9 years ago

Seems like it's working with the plain text setting, don't know why it wasn't when I first posted this.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2269 9 years ago
Archive · by Muut Archive, 9 years ago
2 1493 9 years ago
Archive · by Muut Archive, 9 years ago
2 4739 9 years ago
Archive · by Muut Archive, 9 years ago
1 3552 9 years ago
Archive · by Muut Archive, 9 years ago
3 1618 9 years ago