Multiple email adresses (Information collector)

Author Message

Tonny Laursen

Friday 05 September 2003 5:40:44 am

I have followed the guide about Information collector and it is working.
Now I want the form to send the information to multiple recipients. If I use ':', ',' or ';' as seperators is it not working like (name@domain.dk, name1@domain.dk).
Is this possible or do I have to make a attribute for each recipient?

Bjørn Kaarstein

Sunday 07 September 2003 11:51:31 pm

If you skip this line in collectedinfomail.tpl

{* Use this line to specify the e-mail in the template, can read this from the object to
make it dynamic pr form
{set-block scope=root variable=email_receiver}nospam@ez.no{/set-block}
*}

and use site.ini (site.ini.append), you can specify several recipients seperated by comma.

[MailSettings]
AdminEmail=mail1@mysite.com, mail2@mysite.com

You can also use

[InformationCollectionSettings]
# Which email collected information is sent to
EmailReceiver=mail1@mysite.com, mail2@mysite.com

Regards Bjørn

Tonny Laursen

Monday 08 September 2003 1:08:08 am

This is not what I exactly want.

I have created a class for use on multiple pages. Which means that every time I create the form, then I can type who is the email recipients because every form have different multiple email recievers. How can I do that?

Tonny

Bjørn Kaarstein

Monday 08 September 2003 1:15:43 am

OK, now I get what you want.

Take a look at this thread: http://ez.no/developer/ez_publish_3/forum/setup_design/missing_emailsender_in_email_headers

Maybe you could modify the php file, and just add a second variable holding an extra email receiver.

Regards Bjørn

laurent le cadet

Tuesday 23 September 2003 12:41:06 am

Hi,

I have the same problem :

I created a form wich is use in differents parts of the site with on different email receiver in each part.

I followed the first Bjørn answer (08/september) and try with differents adresses but even after cleaning the caches the form still send its content to the same adress.

What can I do or what I haven't done ?

Laurent

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 06:27:50
Script start
Timing: Jan 31 2025 06:27:50
Module start 'layout'
Timing: Jan 31 2025 06:27:50
Module start 'content'
Timing: Jan 31 2025 06:27:50
Module end 'content'
Timing: Jan 31 2025 06:27:50
Script end

Main resources:

Total runtime0.0144 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.2656151.2266
Module start 'layout' 0.00570.0022 739.492236.6797
Module start 'content' 0.00790.0049 776.171994.1875
Module end 'content' 0.01280.0015 870.359433.9922
Script end 0.0143  904.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002416.8181140.0002
Check MTime0.00117.3974140.0001
Mysql Total
Database connection0.00063.867310.0006
Mysqli_queries0.003222.484530.0011
Looping result0.00000.078110.0000
Template Total0.00117.910.0011
Template load0.00085.802610.0008
Template processing0.00032.083210.0003
Override
Cache load0.00064.166310.0006
General
dbfile0.00031.880580.0000
String conversion0.00000.041540.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