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

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 02:09:21
Script start
Timing: Jan 18 2025 02:09:21
Module start 'layout'
Timing: Jan 18 2025 02:09:21
Module start 'content'
Timing: Jan 18 2025 02:09:22
Module end 'content'
Timing: Jan 18 2025 02:09:22
Script end

Main resources:

Total runtime0.6724 sec
Peak memory usage4,096.0000 KB
Database Queries58

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 589.1797152.6406
Module start 'layout' 0.00490.0028 741.820339.5000
Module start 'content' 0.00770.6636 781.3203541.4766
Module end 'content' 0.67130.0011 1,322.796912.1250
Script end 0.6724  1,334.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4543160.0002
Check MTime0.00130.1979160.0001
Mysql Total
Database connection0.00080.112310.0008
Mysqli_queries0.606890.2463580.0105
Looping result0.00050.0811560.0000
Template Total0.644395.820.3222
Template load0.00210.305920.0010
Template processing0.642395.517620.3211
Template load and register function0.00020.024510.0002
states
state_id_array0.00100.147310.0010
state_identifier_array0.00130.187820.0006
Override
Cache load0.00180.2720510.0000
Sytem overhead
Fetch class attribute can translate value0.00090.139320.0005
Fetch class attribute name0.00200.301340.0005
XML
Image XML parsing0.00070.098520.0003
class_abstraction
Instantiating content class attribute0.00000.001940.0000
General
dbfile0.00160.2386170.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
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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs