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

How to specify form email "reply-to"

Started by Muut Archive 9 years ago · 1 replies · 924 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 1318 9 years ago
Archive · by Muut Archive, 9 years ago
2 915 9 years ago
Archive · by Muut Archive, 9 years ago
2 4044 9 years ago
Archive · by Muut Archive, 9 years ago
1 2920 9 years ago
Archive · by Muut Archive, 9 years ago
3 1104 9 years ago