This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Setup & design » Mailtemplate
expandshrink

Mailtemplate

Mailtemplate

Friday 09 April 2010 1:46:12 pm - 4 replies

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.

Modified on Sunday 11 April 2010 1:14:53 pm by Håvard Bergersen

Monday 12 April 2010 10: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

Modified on Monday 12 April 2010 10:19:32 am by Nicolas Pastorino

Monday 12 April 2010 10: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.)

Wednesday 14 April 2010 1:41:26 pm

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

Wednesday 14 April 2010 2:57:38 pm

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! happy.gif Emoticon

Modified on Wednesday 14 April 2010 3:45:06 pm by Håvard Bergersen

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from