Mail Format

Author Message

Fabien Mas

Friday 04 April 2008 5:46:47 am

I have found this variable to set my email format:
[MailSettings]
ContentType=text/html

but I would like to apply it only in my own extension, not for the email from the kernel

Is it possible

Kristof Coomans

Saturday 05 April 2008 1:47:44 am

Hi Fabien

It depends on how you're using your mail. If you are calling the ezmail API directly from in your extension, you can use the setContentType() method on your e-mail instance ( http://pubsvn.ez.no/doxygen/4.0/html/classeZMail.html#ac8ea2b85f149bd38ae1c56b36fdba0b ).

In eZ Publish 4.1.0alpha1 there will also be an enhancement so you can specify the content type inside the template used by the e-mail for certain mails send out by the kernel (subtree notifications, collaboration, tip a friend, user/register, user/forgotpassword): http://issues.ez.no/IssueView.php?Id=11410

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

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 22:34:31
Script start
Timing: Jan 18 2025 22:34:31
Module start 'layout'
Timing: Jan 18 2025 22:34:31
Module start 'content'
Timing: Jan 18 2025 22:34:33
Module end 'content'
Timing: Jan 18 2025 22:34:33
Script end

Main resources:

Total runtime1.4692 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.0067 587.7891152.6094
Module start 'layout' 0.00670.0041 740.398439.3984
Module start 'content' 0.01071.4557 779.7969521.1094
Module end 'content' 1.46650.0027 1,300.90638.2031
Script end 1.4692  1,309.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2313160.0002
Check MTime0.00120.0823160.0001
Mysql Total
Database connection0.00090.057910.0009
Mysqli_queries1.415796.3576540.0262
Looping result0.00140.0936520.0000
Template Total1.428497.220.7142
Template load0.00210.144620.0011
Template processing1.426397.076120.7131
Template load and register function0.00020.012010.0002
states
state_id_array0.00070.051010.0007
state_identifier_array0.00330.225020.0017
Override
Cache load0.00180.1241130.0001
Sytem overhead
Fetch class attribute can translate value0.00080.054720.0004
Fetch class attribute name0.00190.131930.0006
XML
Image XML parsing0.00090.059920.0004
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00180.1199160.0001
String conversion0.00000.001740.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs