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.

eZ debug

Timing: Jan 31 2025 01:15:59
Script start
Timing: Jan 31 2025 01:15:59
Module start 'layout'
Timing: Jan 31 2025 01:15:59
Module start 'content'
Timing: Jan 31 2025 01:15:59
Module end 'content'
Timing: Jan 31 2025 01:15:59
Script end

Main resources:

Total runtime0.0248 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.1016151.1953
Module start 'layout' 0.00530.0033 739.2969220.6563
Module start 'content' 0.00860.0144 959.9531997.8672
Module end 'content' 0.02300.0017 1,957.820333.9922
Script end 0.0247  1,991.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002710.8991140.0002
Check MTime0.00114.2979140.0001
Mysql Total
Database connection0.00062.521610.0006
Mysqli_queries0.00239.236330.0008
Looping result0.00000.044210.0000
Template Total0.00124.710.0012
Template load0.00093.630510.0009
Template processing0.00031.081010.0003
Override
Cache load0.00062.476410.0006
General
dbfile0.002510.149080.0003
String conversion0.00000.024040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs