How to change the format of email send by form.tpl

How to change the format of email send by form.tpl

Thursday 13 March 2008 2:49:07 pm - 4 replies

Author Message

André R.

Friday 14 March 2008 2:34:04 am

try:

{foreach $collection.attributes as $attribute}

{$attribute.contentclass_attribute_name|wash}: {attribute_result_gui view=info attribute=$attribute}

{/foreach}

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Calvin Liu

Saturday 15 March 2008 2:56:26 pm

Hi Andre , I have tried the one you metioned.. however it's still not working..

the outputs are still like:

Name:
Calvin
Email:
calvinlyc@example.com
Receiver:
123@123.com

any other suggestions?? thanks for help :)

Andrei Popa

Tuesday 10 February 2009 5:38:08 am

I've tried to add html code with and without {literal}code{/literal} tags and its not work.

<b>2 Examples:</b>

1. Without {literal} tags

<table border="0" width="100%">
{foreach $collection.attributes as $attribute}
	<tr>
		<td>{$attribute.contentclass_attribute_name|wash}:</td>
		<td>{attribute_result_gui view=info attribute=$attribute}</td>
	</tr>
{/foreach}
</table>

2.With {literal} tag

{foreach $collection.attributes as $attribute}
{$attribute.contentclass_attribute_name|wash}: {attribute_result_gui view=info attribute=$attribute} {literal}<hr/>{/literal}
{/foreach}

any suggestion ?

What do I do?! What do I do?!?

Andrei Popa

Wednesday 11 February 2009 2:19:58 am

Hello,

I found the solution.

You just have to change:

ContentType=text/plain

to

ContentType=text/html

from <b>../settings/site.ini</b> or <b>../settings/siteaccess/yoursiteaccess/site.ini.append.php</b> .

I hope it will help.

What do I do?! What do I do?!?

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.