Feedback form doesn't send email

Author Message

Laurent B.

Friday 08 August 2008 6:45:46 am

Hi

I'm struggling with this issue with no luck. I'd be grateful if someone can help me.

Here is the issue that I encounter both on 4.0.0 and on 4.0.1rc2 (installed today).
I am using the ezwebin package for test purposes.

After I've filled in the Contact form, I submit it.
Feedback form is properly displayed.

However the email is not sent to the recipient that I've set up in the Contact form.

When setting email to file for debugging, I notice that email is incomplete : there are 2 empty fields in it: "From" and "Reply-To" (the rest seems fine).
Hence I guess the email is not sent by the emailserver.

On the other hand, I receive emails when I register a new user, so the email server seems to work fine.

Thanks in advance for your help

Laurent

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.

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