Forums / Setup & design / how to custom information collection email?

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

eZ debug

Timing: Jan 18 2025 00:55:42
Script start
Timing: Jan 18 2025 00:55:42
Module start 'content'
Timing: Jan 18 2025 00:55:43
Module end 'content'
Timing: Jan 18 2025 00:55:43
Script end

Main resources:

Total runtime1.2765 sec
Peak memory usage4,096.0000 KB
Database Queries208

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.9766180.8203
Module start 'content' 0.00481.0997 769.7969632.7422
Module end 'content' 1.10450.1719 1,402.5391341.0547
Script end 1.2765  1,743.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.2808210.0002
Check MTime0.00130.1023210.0001
Mysql Total
Database connection0.00060.047810.0006
Mysqli_queries1.195393.63372080.0057
Looping result0.00220.17092060.0000
Template Total1.251398.020.6256
Template load0.00160.128420.0008
Template processing1.249697.892820.6248
Template load and register function0.00010.011010.0001
states
state_id_array0.00120.094210.0012
state_identifier_array0.00140.112620.0007
Override
Cache load0.00150.1149460.0000
Sytem overhead
Fetch class attribute can translate value0.00140.106440.0003
Fetch class attribute name0.00120.094480.0002
XML
Image XML parsing0.00120.092740.0003
class_abstraction
Instantiating content class attribute0.00000.001690.0000
General
dbfile0.00530.4164330.0002
String conversion0.00000.000330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 37
 Number of unique templates used: 11

Time used to render debug report: 0.0001 secs