Hi everyone,
With the Email plugin is it possible to have a different template for the sender confirmation email ?
One for the receiver and another one for the sender. Example: https://share.riseup.net/#XN8CyVlS8ysZ1e8O5GIMFQ.
Thanks!
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Hi everyone,
With the Email plugin is it possible to have a different template for the sender confirmation email ?
One for the receiver and another one for the sender. Example: https://share.riseup.net/#XN8CyVlS8ysZ1e8O5GIMFQ.
Thanks!
You can have multiple email processes, so this should work. Did you try it?
I've done it like this(my contact.md file):
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'' %}' }
@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!
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 2 | 44 | 1 week ago | ||
| 2 | 54 | 4 weeks ago | ||
| 3 | 1181 | 1 month ago | ||
| 1 | 48 | 1 month ago | ||
| 3 | 73 | 2 months ago |