Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

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

Started by Muut Archive 10 years ago · 1 replies · 809 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 Muut Archive, 10 years ago
1 672 1 week ago
Archive · by Deleted User, 9 years ago
0 3043 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5336 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago