Forums / Setup & design / how to custom information collection email?
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 :
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
Wednesday 24 November 2010 3:39:22 am
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
Wednesday 24 November 2010 5:57:02 am
I wasn't go deep in this tutorial, i saw the email custom method. that is!cool ,thank you very much =)
Wednesday 24 November 2010 6:32:37 am
Excellent !