Mailtemplate

Author Message

Håvard Bergersen

Friday 09 April 2010 4:46:12 am

When adding this to my collectedinfomail/form.tpl

{set-block scope=root variable=email_sender} 
    {$collection.data_map.email.content} 
{/set-block}

the mail isn't being send, but without it, it does.

Is this a bug in 4.3 because it works in earlier versions. In the kernel/content/collectedinformation.tpl it looks like this should be possible.

Nicolas Pastorino

Monday 12 April 2010 1:19:15 am

Hi Håvard,

Are you sure the {$collection.data_map.email.content} line actually outputs something ? You may want to push some debug magic in the template above, like the debug-log template function :

{debug-log var=$collection.data_map.email.content msg='dumping collected data from mail tpl'}

This is equivalent to a

eZDebug::writeDebug(...);

Let us know,
Cheers

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Håvard Bergersen

Monday 12 April 2010 1:47:19 am

Debug:
'dumping collected data from mail tpl:teste@test.com'

So it holds the information. (Becides, the template loops throug $collection.attributes, and everything is where it is supposed to be, so that can't be the problem.)

Abdelkader RHOUATI

Wednesday 14 April 2010 4:41:26 am

Hi,

Are you using protocol SMTP to send mails ?

Try to use "file" us protocol transport for sending mail to a log file ( var/[siteaccess]/log/mail ); modify your site.ini, block MailSettings, variable Transport.

Check if the file mail was created, then I suppose there is a problem in your SMTP Server, it's not accept a email test like teste@test.com, then try a real email.

Tks

Abdelkader RHOUATI

Blog (french) : http://arhouati.com
----
Extension arh_jdebug : EzDebug using jquery

Håvard Bergersen

Wednesday 14 April 2010 5:57:38 am

Hmmm. The file is created and it contains the right info:

From: teste@test.com
Cc: teste@test.com
Reply-To: teste@test.com

I don't use SMTP. I use 'sendmail'.

Thank you Abdelkader for your help! :)

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 03:10:39
Script start
Timing: Jan 18 2025 03:10:39
Module start 'layout'
Timing: Jan 18 2025 03:10:39
Module start 'content'
Timing: Jan 18 2025 03:10:40
Module end 'content'
Timing: Jan 18 2025 03:10:40
Script end

Main resources:

Total runtime0.7171 sec
Peak memory usage4,096.0000 KB
Database Queries66

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 587.7891152.6094
Module start 'layout' 0.00530.0034 740.398439.4141
Module start 'content' 0.00870.7073 779.8125614.0859
Module end 'content' 0.71600.0011 1,393.898416.1953
Script end 0.7171  1,410.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4394160.0002
Check MTime0.00130.1768160.0001
Mysql Total
Database connection0.00070.103310.0007
Mysqli_queries0.656791.5729660.0099
Looping result0.00050.0753640.0000
Template Total0.691596.420.3457
Template load0.00180.246320.0009
Template processing0.689796.177320.3449
Template load and register function0.00010.014610.0001
states
state_id_array0.00100.138010.0010
state_identifier_array0.00070.100020.0004
Override
Cache load0.00160.2191400.0000
Sytem overhead
Fetch class attribute can translate value0.00080.116330.0003
Fetch class attribute name0.00120.161080.0001
XML
Image XML parsing0.00150.212830.0005
class_abstraction
Instantiating content class attribute0.00000.0027100.0000
General
dbfile0.00110.1569280.0000
String conversion0.00000.001440.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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 32
 Number of unique templates used: 9

Time used to render debug report: 0.0001 secs