Forums / Setup & design / Information Collector and email sending issues

Information Collector and email sending issues

Author Message

Tobias Vogel

Thursday 06 March 2008 5:18:32 am

Hello,

we noticed today, that our information collector (a tiny contact form) isn't sending out email anymore (though collecting the data in the database). Probably it has to do something with a recent upgrade to ezpublish 4.0.

I already looked at some places, to rule out any configuration issues:
- collect.ini is the same that comes packaged with ezpublish, in particular SendEmail is enabled
- Any of the settings in collect.ini is neither overridden in any siteaccess nor any extension
- In the siteaccess, a valid email is entered for the setting "EmailReceiver"

Additionally, I looked up the logs of the mail server, but no attempt of sending an email frome zpublish is logged.

When I send the form in debug mode, I noticed, that in used templates, the template "content/collectedinfo/form.tpl" gets listed. IMHO, it should be "content/collectedinfomail/form.tpl", when sending of an email is the result of the action.

Can anyone enlighten me where else to look or configure anything, so my emails get sent again?

Kind regards,
Tobias

Bruce Morrison

Thursday 06 March 2008 3:09:16 pm

Hi Tobias

There is an issue with the smtp transport in eZ4.0

<i>Due to a bug in eZ Publish 4.0.0, you need to download the updated version of the "ezsmtp" class and replace the corresponding file in your installation in order to use an SMTP relay server for mail delivery. This bug will be fixed in the upcoming eZ Publish 4.0.1 release.</i>

Patch: http://pubsvn.ez.no/nextgen/stable/4.0/lib/ezutils/classes/ezsmtp.php

See:
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/configuration_files/site_ini/mailsettings/transport

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Tobias Vogel

Friday 07 March 2008 12:00:41 am

Hi Bruce,

I read about this bug before, but our setting is "sendmail" so the ezsmtp bug shouldn't be an issue, right?

Kind regards,
Tobias

Peter Szmulik

Wednesday 02 April 2008 1:30:32 am

Hi

I have a similar problem that persists after having downloaded the new ezsmtp.php file. I want to use the smtp transport method and the rest would really have been straightforward, I thought...

I know that eZ Publish generates a mail; (at least it wrote a mail file in /var/log/mail when I changed the Transport setting to File). When I change that back to smtp I get no error message and still no delivered e-mail.

If eZ Publish for some reason can't connect to the smtp server, would it then write an error log entry in /var/log ? Or just drop it?

Best Regards
Peter

Peter Szmulik

Wednesday 02 April 2008 6:05:43 am

... and I am, from my server, able to connect to my smtp server using:

>Telnet <IPaddress> 25

eZ debug

Timing: Jan 31 2025 00:27:39
Script start
Timing: Jan 31 2025 00:27:39
Module start 'content'
Timing: Jan 31 2025 00:27:39
Module end 'content'
Timing: Jan 31 2025 00:27:39
Script end

Main resources:

Total runtime0.2345 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 588.0781370.2734
Module start 'content' 0.00740.0123 958.35161,005.5781
Module end 'content' 0.01960.2148 1,963.92973,895.0391
Script end 0.2344  5,858.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00451.9073200.0002
Check MTime0.00130.5353200.0001
Mysql Total
Database connection0.00090.397910.0009
Mysqli_queries0.141760.44891410.0010
Looping result0.00140.60461390.0000
Template Total0.214491.410.2144
Template load0.00070.308810.0007
Template processing0.213791.129810.2137
Override
Cache load0.00050.212810.0005
Sytem overhead
Fetch class attribute can translate value0.00210.898210.0021
XML
Image XML parsing0.00020.082410.0002
General
dbfile0.00793.3906200.0004
String conversion0.00000.002430.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