Send contact form twice

Author Message

Alexander Trotter

Wednesday 07 April 2010 8:06:49 am

Hi everybody,

i've created a contact-form class using information collector fields.
The submited form gets send to an email-adress which i defined in the template using
{set-block scope=root variable=$email_receiver}.
But I'd like to send this email also to the one who submited the form. I get the email from a field in the contact form.
Is there a way i can do this?

Gabriel Finkelstein

Friday 09 April 2010 12:40:31 pm

You can define an email_cc_receivers variable, like:

{set-block scope=root  variable=email_cc_receivers}{$collection.data_map.email.content}{/set-block}

Alexander Trotter

Sunday 11 April 2010 11:07:42 pm

Thank you for your reply.
I already knew that. I also managed to find a way sending the mail to an email-adress which was input in the form itsself using:
{set-block scope=root variable=$email_receiver}{$collection.attributes[4].data_text}{/set-block}

But what i really like to do, is send the email twice. To the visitor who filled out the form, like:
Dear Visitor,
we received your request with the following data: ... We'll be contacting you soon.

And to the owner of the website, like:
There was a new reequest on your homepage with the following data: ...

Is there a way i can do this?

Abdelkader RHOUATI

Wednesday 14 April 2010 5:05:27 am

Hi,

The ez collectedinfos send only one mail email, that mean only one receiver. You must create a module to do it.

tks

Abdelkader RHOUATI

Blog (french) : http://arhouati.com
----
Extension arh_jdebug : EzDebug using jquery

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.