Send email notificiation to several people (simple problem)

Author Message

Jens Kultima

Tuesday 06 November 2007 3:57:42 am

This problem is very simple. All I have to do is to find a way to wirte an array. The code is like this:

{*?template charset=utf-8?*}
{set-block scope=root variable=subject}{$collection.attributes[0].content} (från Projektbanken){/set-block}
{set-block scope=root variable=email_receiver}MYEMAIL@DOMAIN.COM{/set-block}
{set-block scope=root variable=email_sender}{$collection.attributes[3].content}{/set-block}
{set-block scope=root variable=redirect_to_node_id}1246{/set-block}
{$collection.attributes[1].content}

All I want to do is to change the MYEMAIL@DOMAIN.COM to 2 emails:
email1@domain.com,email2@domain.com

But all ways I have tried to input this array have failed. What is the correct way to write?

Thank you!
Jens

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 18 2025 16:21:28
Script start
Timing: Jan 18 2025 16:21:28
Module start 'layout'
Timing: Jan 18 2025 16:21:28
Module start 'content'
Timing: Jan 18 2025 16:21:29
Module end 'content'
Timing: Jan 18 2025 16:21:29
Script end

Main resources:

Total runtime0.9759 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 589.2813152.6563
Module start 'layout' 0.00560.0023 741.937539.5078
Module start 'content' 0.00790.9665 781.4453402.5234
Module end 'content' 0.97440.0015 1,183.96888.2500
Script end 0.9759  1,192.2188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3312160.0002
Check MTime0.00130.1314160.0001
Mysql Total
Database connection0.00070.073910.0007
Mysqli_queries0.937096.0150460.0204
Looping result0.00060.0631440.0000
Template Total0.927095.020.4635
Template load0.00180.187320.0009
Template processing0.925294.800520.4626
Template load and register function0.00020.018210.0002
states
state_id_array0.00080.078010.0008
state_identifier_array0.02152.206020.0108
Override
Cache load0.00150.1494100.0001
Sytem overhead
Fetch class attribute can translate value0.00120.119310.0012
Fetch class attribute name0.00070.068110.0007
XML
Image XML parsing0.00010.010810.0001
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00070.0742100.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs