Comment notification not working

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
accampbell
Regular
Posts: 138
Joined: Fri Jun 09, 2006 8:59 pm
Location: London, UK
Contact:

Comment notification not working

Post by accampbell »

I am not receiving email notification when a new comment is posted. I just tried making a comment myself and again nothing happened. I do have this option enabled in Config.

It used to work some time ago so I don't know why it has stopped now. The only change I have made is to disable Captcha verification because too many people were complaining about it, but I don't see why that would affect notification.

Any ideas please?
Anthony Campbell
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Comment notification not working

Post by garvinhicking »

Hi!

Do you have access to your server? Did maybe something change in your domain or hosting?

Try to create a simple "mailtest.php" file:

Code: Select all

<?php
mail('yourmail@yourdomain.com', 'Mail test', 'This is a testmail');
echo "Mail sent";
Then call that PHP script via HTTP and see if you receive the testmail. It could be that you need to enter the blog'S mail address in s9y configuration. Also, it would be great if you had access to your local server's SMTP localhost logfile to see why/if sending mail could fail.

HTH,
GArvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
accampbell
Regular
Posts: 138
Joined: Fri Jun 09, 2006 8:59 pm
Location: London, UK
Contact:

Re: Comment notification not working

Post by accampbell »

I don.t think anything has changed on my server and I have my email address in the config file.

I'm very sorry, I don't know how to call the test.php file. Do I have to upload it to the server or can I do it locally? If so, how?
Anthony Campbell
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Comment notification not working

Post by garvinhicking »

Hi!

You mean in the s9y configuration screen? This should not be inside a file, but rather in the serendipity_config database; so just to be sure you actually mean that.

Yes, upload this file (via FTP, for example) into the directory where your blog is, and then call http://yourdomain/yourdirectory/mailtest.php in your browser. This is "calling it on the server". Sorry for not being specific.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
accampbell
Regular
Posts: 138
Joined: Fri Jun 09, 2006 8:59 pm
Location: London, UK
Contact:

Re: Comment notification not working

Post by accampbell »

I must be doing something stupid but it still doesn't work. I uploaded the script and accessed it with the browser, but the code doesn't run, it just appears on the screen. I tried with two different browsers.

What I meant about the email address is that there is a place to enter my email address, in Personal Settings, which I have done.
Anthony Campbell
accampbell
Regular
Posts: 138
Joined: Fri Jun 09, 2006 8:59 pm
Location: London, UK
Contact:

Re: Comment notification not working

Post by accampbell »

Sorry, the opening < had got omitted from the script. The mail says it is sent but does not arrive.
Anthony Campbell
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Comment notification not working

Post by garvinhicking »

accampbell wrote:Sorry, the opening < had got omitted from the script. The mail says it is sent but does not arrive.
That's actually good. It means something is wrong with the server itself, not with the s9y installation. Your webserver support should be able to help out with this, you might want to also point them to that test PHP script to tell them, that this does not work anymore.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
accampbell
Regular
Posts: 138
Joined: Fri Jun 09, 2006 8:59 pm
Location: London, UK
Contact:

Re: Comment notification not working

Post by accampbell »

Yes, thanks very much for your help - it's now working. The problem was that I was using my standard email address with my domain name (ac@xxxxxx.co.uk), when what the server wanted was ac@myserver.co.uk. Using this makes everything work. I will take it up with the server people to get it fixed properly.

Kind regards,

Anthony

A
Anthony Campbell
Post Reply