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.