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

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

Started by Muut Archive 9 years ago · 1 replies · 595 views
9 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?

9 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 1332 9 years ago
Archive · by Muut Archive, 9 years ago
2 923 9 years ago
Archive · by Muut Archive, 9 years ago
2 4053 9 years ago
Archive · by Muut Archive, 9 years ago
1 2931 9 years ago
Archive · by Muut Archive, 9 years ago
3 1109 9 years ago