Send Email Code

Author Message

Dark Dante

Tuesday 05 July 2005 8:20:38 am

Hi, what is the function or code where one templete can send a email, for example feedback form or shop confirm,and where are locate this templetes(not the form to edit an email, the form which i can send an email, code or function.), thanks!!

ludo thomas

Wednesday 06 July 2005 8:05:28 am

hi dark.
the code is generally in a workflow:
try this:

include_once( 'lib/ezutils/classes/ezmail.php' );
			
             include_once( 'lib/ezutils/classes/ezmailtransport.php' );
			
			
			$mail = new eZMail();

 $emailSender ='info@bazaravenue.com';
  		 $receiver = 'you@test.com;
		
			$mail->setBody( $mailTemplateResult);

            $mail->setSender( $emailSender );		
            $mail->setReceiver($receiver );
            $subject = ' Newsletter';
           
            $mail->setSubject( $subject );
           
            $mailResult = eZMailTransport::send( $mail );
		

Dark Dante

Wednesday 06 July 2005 10:52:35 am

Yea i found this code, i figure this code send 1 email to the receiver mail, but information with sender mail, in this code it's posible send one mail to both, sender and receiver, sender a mail for greetings and receiver the sender message, in one operation or code. thnks.

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 23:15:32
Script start
Timing: Jan 18 2025 23:15:32
Module start 'layout'
Timing: Jan 18 2025 23:15:32
Module start 'content'
Timing: Jan 18 2025 23:15:33
Module end 'content'
Timing: Jan 18 2025 23:15:33
Script end

Main resources:

Total runtime1.2411 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0090 587.7891152.6094
Module start 'layout' 0.00900.0051 740.398439.4297
Module start 'content' 0.01411.2250 779.8281500.8594
Module end 'content' 1.23900.0020 1,280.68758.1953
Script end 1.2410  1,288.8828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2643160.0002
Check MTime0.00130.1076160.0001
Mysql Total
Database connection0.00280.221710.0028
Mysqli_queries1.194596.2436570.0210
Looping result0.00060.0521550.0000
Template Total1.192096.020.5960
Template load0.00220.173320.0011
Template processing1.189895.867120.5949
Template load and register function0.00020.012310.0002
states
state_id_array0.00180.142910.0018
state_identifier_array0.00140.115520.0007
Override
Cache load0.00170.1382120.0001
Sytem overhead
Fetch class attribute can translate value0.00050.042120.0003
Fetch class attribute name0.00160.128540.0004
XML
Image XML parsing0.00080.060720.0004
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00100.0802160.0001
String conversion0.00000.000840.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
3content/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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 11
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs