Share » Forums » Setup & design » Mailtemplate

Mailtemplate

Mailtemplate

Friday 09 April 2010 4:46:12 am - 4 replies

Modified on Sunday 11 April 2010 4:14:53 am by Håvard Bergersen

Author Message

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! :)

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu