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

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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

Author Message

Calvin Liu

Thursday 13 March 2008 2:49:07 pm

{foreach $collection.attributes as $attribute}

{$attribute.contentclass_attribute_name|wash}:

{attribute_result_gui view=info attribute=$attribute}

{/foreach}

The codes above are the part of form.tpl under templates/content/collectedinfomail.
Dose the view=info control the format of email to display?
I have look through the templates under standards, and I've found some templates within the same name, but none of them is the one I required. So my quesition is how can I change the format of email to display like name: calvin
message: hello, nice 2 meet u
receiver: calvinlyc@example.com
rather than name:
calvin
message:
hello, nice 2 meet u
receiver:
calvinlyc@example.com

English is not my first language, hope everyone can understand my questions. Thanks for the help

Kind regards

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?!?