help for troubleshooting email sending by eZpublish

Author Message

Massimiliano Bariola

Thursday 07 July 2005 8:21:50 am

can anyone help troubleshooting an eZ user registration email problem?
the normal flow for an user self-registration should be 1) I fill in my data 2) eZ sends me an email with an activation link . but this email never arrives. I have tried a simple script to test if the mail server works, and it does. so I suppose I am doing something wrong in my eZ settings.
my settings are :
[MailSettings]
Transport=smtp
TransportServer=mail.xxxxxxx.it
TransportPort=25
#TransportUser=
#TransportPassword=
AdminEmail=m.bariola@xxxxxx.it
EmailSender=m.bariola@xxxxxxx.it
... so I think all is ok ... but nothing happens. do I have to activate the emails elsewhere? or, does eZ log the errors anywhere? the normal inline debug says nothing at all.

Massimiliano Bariola

Thursday 07 July 2005 9:06:23 am

... or maybe is there an utility script which I can use to test the email functionality without having to insert thousands of dummy users ?

Massimiliano Bariola

Friday 08 July 2005 6:26:05 am

Can't anyone really help on this?

I have tail -f'd the mail antivirus log, and it really seems that emails are not sent to the SMTP server. I have lost 2 days on this and I am at my wits' end.

where should I look into the core to check where the emails are sent???

ludo thomas

Monday 11 July 2005 9:46:48 am

HI massimiliano,

The mails are send in 'Kernel/users/register.php.

the mails template are in:
design:user/registrationinfo.tpl
design:user/registrationfeedback.tpl.

I hope you could understand why your system doesn't work

ps: you can have a look in site.ini:
<b>RegistrationEmail=</b>

Ludo

Bruce Morrison

Monday 11 July 2005 5:19:19 pm

Hi Massimiliano

I have tail -f'd the mail antivirus log, and it 
really seems that emails are not sent to the SMTP 
server.

Do you have access to the SMTP server. If so are you able to check the mail server logs?

Also try turning debugging on in ezPublish and check the debug output for any issues.

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

Massimiliano Bariola

Tuesday 12 July 2005 1:17:59 am

Hi Bruce,

the only clear-text smtp log we have is the antivirus one -- my admin tells me that everything that concerns the smtp server should show there.

A simple PHP script to use the smtp server with the same access data works .

I already have debugging on, but nothing shows up in the logs.

Massimiliano Bariola

Tuesday 12 July 2005 2:50:54 am

everybody -

I was unable to make the SMTP Transport work, but after some playing with postfix, I was able to configure it correctly to use relays. I switched to sendmail transport and now it works as it should.

I cannot say I know more about eZpublish, but at least the emails work now ... and that's something.

thanks for your time, guys

Björn Dieding@xrow.de

Tuesday 12 July 2005 5:13:27 am

Here is a short note for ppl having similar issues in the future.

the eZ SMTP class is not always working well when it comes to error handling.

One thing you should do is to really print out the sended and received data by the SMTP Gateway.

For this you need to add debug in the eZ SMTP class.

Something like
eZDebug::writeNotice( $datatosocket );

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

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