ezMail , multipart/mixed and boundary

Author Message

william blanc dit jolicoeur

Monday 18 February 2008 3:35:18 pm

Hi,
Is it possible to send multipart email with ezMail ?
I tried to set the right contentType:

       $mail->setContentType('multipart/mixed' );
 

But I don't know how to specify text part and html part.
The part set in setBody() isn't display in the email I receive.

Does anyone have an idea for this?

--
William

Felix Laate

Monday 18 February 2008 3:55:37 pm

Hi

this is the definition of the setContentType() function:

eZMail::setContentType(  	
                $type = false,
		$charset = false,
		$transferEncoding = false,
		$disposition = false,
		$boundary = false	 
	) 	

 

Try to set the parameters accordingly.

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

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 00:13:48
Script start
Timing: Jan 19 2025 00:13:48
Module start 'layout'
Timing: Jan 19 2025 00:13:48
Module start 'content'
Timing: Jan 19 2025 00:13:49
Module end 'content'
Timing: Jan 19 2025 00:13:49
Script end

Main resources:

Total runtime0.9004 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 587.9375152.6250
Module start 'layout' 0.00600.0026 740.562539.4453
Module start 'content' 0.00860.8903 780.0078532.0078
Module end 'content' 0.89890.0014 1,312.01568.1563
Script end 0.9003  1,320.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3719160.0002
Check MTime0.00130.1447160.0001
Mysql Total
Database connection0.00120.135710.0012
Mysqli_queries0.849794.3702540.0157
Looping result0.00060.0711520.0000
Template Total0.870496.720.4352
Template load0.00210.227920.0010
Template processing0.868396.445420.4342
Template load and register function0.00020.020510.0002
states
state_id_array0.00080.085510.0008
state_identifier_array0.00100.112920.0005
Override
Cache load0.00170.1855230.0001
Sytem overhead
Fetch class attribute can translate value0.00050.059520.0003
Fetch class attribute name0.00090.099440.0002
XML
Image XML parsing0.00240.268120.0012
class_abstraction
Instantiating content class attribute0.00000.000640.0000
General
dbfile0.00320.3609220.0001
String conversion0.00000.001040.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 18
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs