Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Archive

HTML encoding in body of email

Started by Muut Archive 9 years ago · 1 replies · 560 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 1318 9 years ago
Archive · by Muut Archive, 9 years ago
2 915 9 years ago
Archive · by Muut Archive, 9 years ago
2 4024 9 years ago
Archive · by Muut Archive, 9 years ago
1 2900 9 years ago
Archive · by Muut Archive, 9 years ago
3 1082 9 years ago