multi email id feedback form

Author Message

Akhilesh Singh

Thursday 28 April 2011 8:25:38 am

Hello All,

can any one suggest me how can i make it possible to send email to multiple mail id from feedback form.

i have used text line attribute for receiver email address with comma separated email id's . but email is not getting delivered.

can any one help me in which file i should be looking for to make changes and how..

Thank you,
Akhilesh

Amine BETARI

Thursday 28 April 2011 9:55:04 am

Hello,
I do not know what is the default exists under ezpublis, or you can define a workflow, just after the publication of a new comment, you sending emails

Amine

www.abetari.com

Akhilesh Singh

Thursday 28 April 2011 10:59:17 pm

Thank you for the reply Amine BETARI..

but this is not my requirement i need a provision in my feedback form to add multiple receiver email id and i should be able to change that email id from my admin back end by editing that form object.

Steven E. Bailey

Thursday 28 April 2011 11:45:06 pm

It would really depend on how this was implemented - whether or not someone put the functionality in an extension or not. But, if the feedback form is a standard information collector and this was implemented with a kernel hack then it is/was in kernel/content/collectinformation.php

What I've done (over and over) is to add something like this to the file (around line 290) near where the receiver(s) are set:

//begin hack
$dataMap = $object->attribute( 'data_map' );
$receiver = $dataMap['recipient']->content();
//end hack

Of course if the attribute is a comma seperated text line then it would need some more code to do that.

Did this break after an upgrade? I'm guessing that during an upgrade the necessary hack wasn't migrated - check your old files or old revisions if you can.

If not, then see what the attribute identifier is (the 'recipient' in the above code) and search your (old) code for that.

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

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 10:27:46
Script start
Timing: Jan 18 2025 10:27:46
Module start 'layout'
Timing: Jan 18 2025 10:27:46
Module start 'content'
Timing: Jan 18 2025 10:27:47
Module end 'content'
Timing: Jan 18 2025 10:27:47
Script end

Main resources:

Total runtime0.8179 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0087 589.0313152.6250
Module start 'layout' 0.00870.0043 741.656339.4531
Module start 'content' 0.01300.8028 781.1094584.4531
Module end 'content' 0.81580.0018 1,365.562512.1641
Script end 0.8176  1,377.7266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4376160.0002
Check MTime0.00150.1788160.0001
Mysql Total
Database connection0.00180.217310.0018
Mysqli_queries0.763193.3045620.0123
Looping result0.00060.0773600.0000
Template Total0.782695.720.3913
Template load0.00200.247720.0010
Template processing0.780695.437820.3903
Template load and register function0.00020.029410.0002
states
state_id_array0.00170.211510.0017
state_identifier_array0.00100.125220.0005
Override
Cache load0.00170.2087280.0001
Sytem overhead
Fetch class attribute can translate value0.00100.125330.0003
Fetch class attribute name0.00140.175150.0003
XML
Image XML parsing0.00070.083530.0002
class_abstraction
Instantiating content class attribute0.00000.001950.0000
General
dbfile0.00170.2077170.0001
String conversion0.00000.001640.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs