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

Email plugin and contact form, reply-to (reply_to) should be visitor

Started by Muut Archive 10 years ago · 1 replies · 711 views
10 years ago

We're using the Grav email plugin on our site but the contact form is not placing the user's email address as the reply-to in the email. How can we configure it so that the person that filled out the form is set as reply_to?

10 years ago

The setup would be something like this
-```
reply_to: '{{ form.value.email }}'

TXT

However that would mean the user would email themselves if they replied to the email.

If you wanted the user to receive a copy of the submission you could do something like this to bcc: you a copy and and to: a copy to them.

from: '{{ config.plugins.email.from }}'
to: '{{ form.value.email }}'
bcc: '{{ config.plugins.email.from }}'

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2278 9 years ago
Archive · by Muut Archive, 9 years ago
2 1496 9 years ago
Archive · by Muut Archive, 9 years ago
2 4745 9 years ago
Archive · by Muut Archive, 9 years ago
1 3557 9 years ago
Archive · by Muut Archive, 9 years ago
3 1620 9 years ago