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

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

eZ debug

Timing: Jan 18 2025 18:34:27
Script start
Timing: Jan 18 2025 18:34:27
Module start 'layout'
Timing: Jan 18 2025 18:34:27
Module start 'content'
Timing: Jan 18 2025 18:34:28
Module end 'content'
Timing: Jan 18 2025 18:34:28
Script end

Main resources:

Total runtime0.9518 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 588.0469152.6406
Module start 'layout' 0.00740.0036 740.687539.4922
Module start 'content' 0.01100.9385 780.1797594.2266
Module end 'content' 0.94950.0022 1,374.406312.1250
Script end 0.9517  1,386.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.3909160.0002
Check MTime0.00160.1629160.0001
Mysql Total
Database connection0.00150.162210.0015
Mysqli_queries0.884392.9089650.0136
Looping result0.00070.0765630.0000
Template Total0.913696.020.4568
Template load0.00220.234920.0011
Template processing0.911495.753920.4557
Template load and register function0.00020.021810.0002
states
state_id_array0.00120.123810.0012
state_identifier_array0.00210.217820.0010
Override
Cache load0.00190.2009390.0000
Sytem overhead
Fetch class attribute can translate value0.00100.102330.0003
Fetch class attribute name0.00250.260960.0004
XML
Image XML parsing0.00070.078330.0002
class_abstraction
Instantiating content class attribute0.00000.001560.0000
General
dbfile0.00120.1228160.0001
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs