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 →

Have a different template for sender confirmation email

Started by Hugo S. 9 years ago · 3 replies · 960 views
9 years ago

You can have multiple email processes, so this should work. Did you try it?

9 years ago

I've done it like this(my contact.md file):


TWIG
    process:
        -
            email: { from: '{{ config.plugins.email.from }}', to: '{{ form.value.email|e }}', subject: '[Your message to Charity Backpackers] {{ form.value.name|e }}', body: '{% include ''forms/contact-confirmation.html.twig'' %}' }
        -
            email: { from: '{{ config.plugins.email.from }}', to: '{{ config.plugins.email.from }}', subject: '[New request] from: {{ form.value.name|e }}', body: '{% include ''forms/contact-request.html.twig'' %}' }
        -
            save: { fileprefix: feedback-, dateformat: Ymd-His-u, extension: txt, body: '{% include ''forms/data.txt.twig'' %}' }

9 years ago

@AmauryH & @rhuk It works now.

My instinct told me to do what you suggested me ... But the first time it didn't work at all.

Thanks guys!

Suggested topics

Topic Participants Replies Views Activity
Plugins · by DrPen, 1 month ago
2 478 1 month ago
Plugins · by renedebaaij, 2 months ago
1 350 1 month ago
Plugins · by Thomas, 1 month ago
1 375 1 month ago
Plugins · by complanar, 2 months ago
6 699 2 months ago
Plugins · by BenLaKnet, 2 months ago
1 642 2 months ago