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

Contact Form: Sender Receives Confirmation

Started by Muut Archive 10 years ago · 2 replies · 596 views
10 years ago

I am testing my contact form and I noticed the sender is receiving a confirmation email. How can I stop the confirmation email send to recipient? Also, in the email 'To:', it has both the sender's and the admin's email addresse. Would like to have just one email placed there.

10 years ago

Hi,

If you have something like in your form definition (I extracted the interesting part) :

TWIG
    process:
        -
            email:
                from: "{{ config.plugins.email.from }}"
                to: 
                    - "{{ config.plugins.email.from }}"
                    - "{{ form.value.email }}"

Then the "to" will send to both internal contact and to recipient.

So just remove the - "{{ form.value.email }}" and you should be done.

Hope it helps,
Nicolas

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1297 9 years ago
Archive · by Muut Archive, 9 years ago
2 894 9 years ago
Archive · by Muut Archive, 9 years ago
2 4024 9 years ago
Archive · by Muut Archive, 9 years ago
1 2899 9 years ago
Archive · by Muut Archive, 9 years ago
3 1082 9 years ago