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.

eZ debug

Timing: Jan 31 2025 06:27:01
Script start
Timing: Jan 31 2025 06:27:01
Module start 'layout'
Timing: Jan 31 2025 06:27:01
Module start 'content'
Timing: Jan 31 2025 06:27:01
Module end 'content'
Timing: Jan 31 2025 06:27:01
Script end

Main resources:

Total runtime0.0197 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.2813151.2266
Module start 'layout' 0.00610.0042 739.507836.6797
Module start 'content' 0.01040.0073 776.1875102.3125
Module end 'content' 0.01770.0019 878.500041.9922
Script end 0.0196  920.4922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002814.4183140.0002
Check MTime0.00136.3635140.0001
Mysql Total
Database connection0.00168.167610.0016
Mysqli_queries0.003718.670830.0012
Looping result0.00000.076410.0000
Template Total0.00136.810.0013
Template load0.00094.621310.0009
Template processing0.00042.131710.0004
Override
Cache load0.00063.155710.0006
General
dbfile0.002211.194780.0003
String conversion0.00000.046140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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