Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

How to specify form email "reply-to"

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

I would like to specify the "Reply-to" value of form emails.
example:
process:

TWIG
  email:
    from: "{{ form.value.email }}"
    to: "{{ config.plugins.email.to }}"
    reply-to: "{{ form.value.email }}"
    subject: "Contact by {{ form.value.name|e }}"
    body: "{% include 'forms/data.html.twig' %}"
9 years ago

Found it! Just had to use lowline in place of hyphen
reply_to: “{{ form.value.email }}”

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2563 9 years ago
Archive · by Muut Archive, 9 years ago
2 1689 9 years ago
Archive · by Muut Archive, 9 years ago
2 4980 9 years ago
Archive · by Muut Archive, 9 years ago
1 3804 9 years ago
Archive · by Muut Archive, 9 years ago
3 1798 9 years ago