how to custom information collection email?

Author Message

Daniele Conci

Wednesday 24 November 2010 1:09:02 am

Hello everybody,

i'd like to custom the email sent by information collector to the admin email. Customize che email body, is there a file managing this? ...and more, is it possible to send the email also to a different email recipient, maybe the one specified from the form's user in the proper field?

best regards and thanks anyway

Nicolas Pastorino

Wednesday 24 November 2010 2:56:30 am

Hi Daniele, and welcome to the eZ Community !

One thing you may take a look at, a sort of "hackish" solution : http://share.ez.no/forums/developer/user-confirmation-email-for-collected-information

Another way would be to override one (check which one is used) of the following templates :

  • design/standard/templates/content/collectedinfomail/form.tpl
  • design/standard/templates/content/collectedinfomail/feedback.tpl

Let us know how it goes !
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

Daniele Conci

Moderated by: Nicolas Pastorino

Wednesday 24 November 2010 3:39:22 am

"

Hi Daniele, and welcome to the eZ Community !

One thing you may take a look at, a sort of "hackish" solution : http://share.ez.no/forums/developer/user-confirmation-email-for-collected-information

Another way would be to override one (check which one is used) of the following templates :

  • design/standard/templates/content/collectedinfomail/form.tpl
  • design/standard/templates/content/collectedinfomail/feedback.tpl

Let us know how it goes !
Cheers,

"

Thanks so much for your answer :)

The custom template of the form i would like to enhance has the following code about button:

<div class="content-action">
<input type="submit" class="defaultbutton" name="ActionCollectInformation" value="{"Send form"|i18n("design/ezwebin/full/feedback_form")}" />
<input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
<input type="hidden" name="ContentObjectID" value="{$node.object.id}" />
<input type="hidden" name="ViewMode" value="full" />
</div>

and the tpl which address is design/ezwebin/full/feedback_form contains the doce

<div class="content-action">
<input type="submit" class="defaultbutton" name="ActionCollectInformation" value="{"Send form"|i18n("design/base")}" />
<input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
<input type="hidden" name="ContentObjectID" value="{$node.object.id}" />
<input type="hidden" name="ViewMode" value="full" />
</div>

Both of these template are overriden. So i'm not able to get the point of where i should include an operatore to handle the new e-mail content and addresses. =/

Romeo Antony

Wednesday 24 November 2010 4:01:00 am

If you go through this tutorial , things will be easier

http://share.ez.no/learn/ez-publish/how-to-create-ez-publish-forms

Daniele Conci

Wednesday 24 November 2010 5:57:02 am

"

If you go through this tutorial , things will be easier

http://share.ez.no/learn/ez-publish/how-to-create-ez-publish-forms

"

I wasn't go deep in this tutorial, i saw the email custom method. that is!cool ,thank you very much =)

Nicolas Pastorino

Wednesday 24 November 2010 6:32:37 am

Excellent !

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

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

eZ debug

Timing: Jan 18 2025 04:07:05
Script start
Timing: Jan 18 2025 04:07:05
Module start 'layout'
Timing: Jan 18 2025 04:07:05
Module start 'content'
Timing: Jan 18 2025 04:07:06
Module end 'content'
Timing: Jan 18 2025 04:07:06
Script end

Main resources:

Total runtime1.4501 sec
Peak memory usage4,096.0000 KB
Database Queries71

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 588.0469152.6406
Module start 'layout' 0.00630.0045 740.687539.4844
Module start 'content' 0.01071.4379 780.1719627.6484
Module end 'content' 1.44860.0015 1,407.820316.1250
Script end 1.4501  1,423.9453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.2493160.0002
Check MTime0.00150.1069160.0001
Mysql Total
Database connection0.00070.048610.0007
Mysqli_queries1.380495.1896710.0194
Looping result0.00080.0550690.0000
Template Total1.410897.320.7054
Template load0.00210.147820.0011
Template processing1.408797.140320.7043
Template load and register function0.00020.013310.0002
states
state_id_array0.00160.108410.0016
state_identifier_array0.00150.100820.0007
Override
Cache load0.00190.1302460.0000
Sytem overhead
Fetch class attribute can translate value0.00060.043930.0002
Fetch class attribute name0.00140.099380.0002
XML
Image XML parsing0.00100.070930.0003
class_abstraction
Instantiating content class attribute0.00000.001490.0000
General
dbfile0.00100.0660220.0000
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
2content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
2content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 37
 Number of unique templates used: 11

Time used to render debug report: 0.0002 secs