Forums / Install & configuration / Feedback form doesn't send email

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.

eZ debug

Timing: Jan 31 2025 08:19:23
Script start
Timing: Jan 31 2025 08:19:23
Module start 'content'
Timing: Jan 31 2025 08:19:23
Module end 'content'
Timing: Jan 31 2025 08:19:23
Script end

Main resources:

Total runtime0.2092 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 588.0547180.8203
Module start 'content' 0.00630.0086 768.875098.0547
Module end 'content' 0.01490.1942 866.9297527.0781
Script end 0.2091  1,394.0078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00301.4326200.0001
Check MTime0.00120.5719200.0001
Mysql Total
Database connection0.00060.304610.0006
Mysqli_queries0.162477.66241410.0012
Looping result0.00120.55341390.0000
Template Total0.193892.710.1938
Template load0.00070.356210.0007
Template processing0.193192.307510.1931
Override
Cache load0.00050.245710.0005
Sytem overhead
Fetch class attribute can translate value0.00080.389610.0008
XML
Image XML parsing0.00030.137710.0003
General
dbfile0.00994.7452200.0005
String conversion0.00000.001830.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs