[SOLVED] cc mail

Author Message

Mads Ovesen

Tuesday 16 August 2005 6:47:22 am

Anyone know how I can put a cc mail recipient on all mails from forms om my site?

Thanks

Answer: Add function addCc in collectinformation.php:

$mail->setReceiver( $receiver );
$mail->addCc( $ccreceiver ); 
$mail->setSubject( $subject );
$mail->setBody( $templateResult );
$mailResult = eZMailTransport::send( $mail );

/m

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 19 2025 15:18:47
Script start
Timing: Jan 19 2025 15:18:47
Module start 'layout'
Timing: Jan 19 2025 15:18:47
Module start 'content'
Timing: Jan 19 2025 15:18:48
Module end 'content'
Timing: Jan 19 2025 15:18:48
Script end

Main resources:

Total runtime0.7840 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.0082 589.0313152.6094
Module start 'layout' 0.00820.0035 741.640639.4297
Module start 'content' 0.01170.7708 781.0703427.0078
Module end 'content' 0.78250.0014 1,208.07818.1875
Script end 0.7839  1,216.2656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4249160.0002
Check MTime0.00130.1601160.0001
Mysql Total
Database connection0.00130.168610.0013
Mysqli_queries0.748295.4428460.0163
Looping result0.00030.0366440.0000
Template Total0.750295.720.3751
Template load0.00210.272220.0011
Template processing0.748195.418420.3740
Template load and register function0.00010.015810.0001
states
state_id_array0.00090.115410.0009
state_identifier_array0.00100.130020.0005
Override
Cache load0.00160.208570.0002
Sytem overhead
Fetch class attribute can translate value0.00060.076810.0006
Fetch class attribute name0.00050.057510.0005
XML
Image XML parsing0.00020.019210.0002
class_abstraction
Instantiating content class attribute0.00000.000410.0000
General
dbfile0.00090.1164100.0001
String conversion0.00000.000940.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
1content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs