Forums / Setup & design / SOLVED - Need help with mail template HTML codes

SOLVED - Need help with mail template HTML codes

Author Message

Viktor Markowski

Friday 25 February 2011 3:44:24 am

I have installed and activated eZComments 1.1. Everything seems to work well. However, the e-mail messages it sends out, do arrive, but are incorrect formatted.

The subject line reads something like: <!-- START: including template: extension/ezcomments/design/standard/templates/comment/notification_subject.tpl (design:comment/notification_subject.tpl) -->

Also, in the e-mail, there are all sorts of HTML codes (see below for a full example of the e-mail content)

I included in site.ini.append.php a line indicating that the system should send html-messages.

Any suggestions where I should start my investigation for solving this?

Thanks,

Viktor

__________________ Example ____________________

MIME-Version: 1.0

User-Agent: eZ Components

Date: Wed, 23 Feb 2011 22:40:02 +0100

Message-Id: <999999999999999.99999.9@conosco.nl>

Content-Type: text/html; charset=us-ascii

Content-Transfer-Encoding: 8bit

<!-- START: including template: extension/ezcomments/design/standard/templates/comment/notification_body.tpl (design:comment/notification_body.tpl) --> <p>

Hi,

<br /><br />

<u>Viktor Markowski</u> posted a new comment on <a href="http://www.conosco.nl/Int etc</a>.

</p>

<p>

<b>Comment summary</b>:<br>

Test

<br />

<br />

<p>

To reply the content, please visit

<a href="http://www.conosco.nl/Int etc">

http://www.conosco.nl/Intel etc

</a>

<br />

For setting your subscription, please visit <a href="http://www.conosco.nl/comment/setting/xxxx etc">

http://www.conosco.nl/comment/setting/xxxx etc

</a><br /><br />

</p>

<!-- STOP: including template: extension/ezcomments/design/standard/templates/comment/notification_body.tpl (design:comment/notification_body.tpl) -->

Sebastiaan van der Vliet

Friday 25 February 2011 3:50:14 am

Did you turn off template debug in your override site.ini.append.php?

Certified eZ publish developer with over 9 years of eZ publish experience. Available for challenging eZ publish projects as a technical consultant, project manager, trouble shooter or strategic advisor.

Viktor Markowski

Friday 25 February 2011 4:47:54 am

Cheers Sebas!

That did the trick. Sometimes life can be simple - fortunately.

Best wishes, Viktor

eZ debug

Timing: Jan 18 2025 00:04:49
Script start
Timing: Jan 18 2025 00:04:49
Module start 'content'
Timing: Jan 18 2025 00:04:50
Module end 'content'
Timing: Jan 18 2025 00:04:51
Script end

Main resources:

Total runtime1.1466 sec
Peak memory usage4,096.0000 KB
Database Queries195

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 587.8594180.8203
Module start 'content' 0.00721.0006 768.6797546.5703
Module end 'content' 1.00790.1387 1,315.2500332.7422
Script end 1.1466  1,647.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.3485210.0002
Check MTime0.00150.1277210.0001
Mysql Total
Database connection0.00120.102810.0012
Mysqli_queries1.067393.08421950.0055
Looping result0.00240.20991930.0000
Template Total1.116397.420.5582
Template load0.00210.184020.0011
Template processing1.114297.172220.5571
Template load and register function0.00030.022310.0003
states
state_id_array0.00090.077510.0009
state_identifier_array0.00070.057020.0003
Override
Cache load0.00180.1588510.0000
Sytem overhead
Fetch class attribute can translate value0.00140.126130.0005
Fetch class attribute name0.00120.102540.0003
XML
Image XML parsing0.00110.094030.0004
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00280.2433280.0001
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs