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.