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:[email protected]'

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 [email protected], 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: [email protected]
Cc: [email protected]
Reply-To: [email protected]

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.