Forums / Developer / multi email id feedback form

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

eZ debug

Timing: Jan 18 2025 02:57:07
Script start
Timing: Jan 18 2025 02:57:07
Module start 'content'
Timing: Jan 18 2025 02:57:08
Module end 'content'
Timing: Jan 18 2025 02:57:08
Script end

Main resources:

Total runtime1.1021 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 587.7109180.8438
Module start 'content' 0.00630.9238 768.5547585.5313
Module end 'content' 0.93010.1719 1,354.0859333.3750
Script end 1.1020  1,687.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.3880210.0002
Check MTime0.00150.1337210.0001
Mysql Total
Database connection0.00080.068810.0008
Mysqli_queries1.026993.17871990.0052
Looping result0.00240.22181970.0000
Template Total1.073297.420.5366
Template load0.00200.182720.0010
Template processing1.071297.194220.5356
Template load and register function0.00020.014310.0002
states
state_id_array0.00070.066310.0007
state_identifier_array0.00280.249620.0014
Override
Cache load0.00170.1517280.0001
Sytem overhead
Fetch class attribute can translate value0.00200.184440.0005
Fetch class attribute name0.00120.111450.0002
XML
Image XML parsing0.00140.124440.0003
class_abstraction
Instantiating content class attribute0.00000.001050.0000
General
dbfile0.00390.3518280.0001
String conversion0.00000.000530.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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