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

Contact formular: How to set the 'Email from' address dynamically?

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

Hi,
I've set up a contact formular, where the user can enter its name, email address and a message. When I receive the contact request via email, the sender address is the one specified in the Email plugin (e.g. [email protected]) and I can not use the reply function of Outlook to answer directly to the user.
Is there a way to use the users email address as the sender address? It would be much easier then to answer to contact requests, because I could simply use the "Reply" button.

9 years ago

This should do the trick:

YAML

    process:
          - email:
                from: '{{ form.value.email }}'

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1323 9 years ago
Archive · by Muut Archive, 9 years ago
2 919 9 years ago
Archive · by Muut Archive, 9 years ago
2 4048 9 years ago
Archive · by Muut Archive, 9 years ago
1 2923 9 years ago
Archive · by Muut Archive, 9 years ago
3 1106 9 years ago