Share » Forums » Setup & design » Sending two or more different emails...

Sending two or more different emails after form submission

Sending two or more different emails after form submission

Tuesday 09 December 2008 12:49:05 pm - 3 replies

Author Message

Christian Rößler

Monday 15 December 2008 9:02:19 am

Espen,

have you managed to get this working?
I'm currently in the exact same situation and would like to know if you had any success...

cheers,
Christian

Hannover, Germany
eZ-Certified http://auth.ez.no/certification/verify/395613

source pixel

Monday 15 December 2008 10:40:54 am

Hello
Maybe this help

1. add two email attribute to "form class" (id of the attribute "email_one", "email_two")
2. override the template "/content/collectedinfomail/form.tpl" and then add this code

send to first email
{set-block scope=root variable=email_receiver}{$object.data_map.email_one.content}{/set-block}

send to second email
{append-block scope=root variable=email_cc_receivers}{$object.data_map.email_two.content}{/append-block}

<b>Or without class change</b>
1. override the template "/content/collectedinfomail/form.tpl" and then add this code

{set-block scope=root variable=email_receiver}Enter_you_first_email_address@ez.no{/set-block}

send to second email
{append-block scope=root variable=email_cc_receivers}Enter_you_second_email_address@ez.no{/append-block}

Ben Ryan

Monday 15 December 2008 3:17:55 pm

The above code doesn't do what Espen was after. I believe you are still sending the exact same email to two different people (using to and CC). But Espen is after a template for each email. So both emails have different contents in it. I'm after the same functionality.

Does anyone know how to do this, apart from writing your own extension.

Cheers

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu