Feedback form doesn't send email

Feedback form doesn't send email

Friday 08 August 2008 6:45:46 am - 4 replies

Modified on Friday 08 August 2008 7:09:23 am by Laurent B.

Author Message

Sebastiaan van der Vliet

Tuesday 12 August 2008 9:34:23 am

Hi Laurent,

I suppose this may be done in two different ways:

1. Kernel hack
In kernel/content/collectinformation.php below

$receiver = $tpl->variable( 'email_receiver' );

add

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

replacing $dataMap['collection_email'] with the actual content class attribute identifier that you are using.

2. Take a look at collect.ini
Maybe it is possible to solve this through the collect.ini file? I haven't been able to figure out how this should be done though.

Certified eZ publish developer with over 9 years of eZ publish experience. Available for challenging eZ publish projects as a technical consultant, project manager, trouble shooter or strategic advisor.

Laurent B.

Wednesday 13 August 2008 9:04:49 am

Thanks very much Sebastiaan
Method 1 works.
Best regards
Laurent

André R.

Wednesday 13 August 2008 9:39:40 am

You shouldn't need to solve this with a hack, it is set with a variable from the template used as you see from the code above.
So make sure $email_receiver is properly set in the template that is being used.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Wei Dai

Tuesday 19 August 2008 8:57:52 pm

Hi,
I have a slight advanced question on this. I want to set a dropdown to let user choose where to send the message; just like the contact form on the http://ez.no/company/contact. How can I do that?

Certified eZ Publish 4 developer looking for develop information & collaboration.

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.