Page 1 of 1

Comment notification not working

Posted: Fri Feb 08, 2013 10:36 am
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?

Re: Comment notification not working

Posted: Fri Feb 08, 2013 11:16 am
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

Re: Comment notification not working

Posted: Fri Feb 08, 2013 1:08 pm
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?

Re: Comment notification not working

Posted: Fri Feb 08, 2013 1:25 pm
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

Re: Comment notification not working

Posted: Fri Feb 08, 2013 2:45 pm
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.

Re: Comment notification not working

Posted: Fri Feb 08, 2013 3:05 pm
by accampbell
Sorry, the opening < had got omitted from the script. The mail says it is sent but does not arrive.

Re: Comment notification not working

Posted: Fri Feb 08, 2013 3:19 pm
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

Re: Comment notification not working

Posted: Fri Feb 08, 2013 3:41 pm
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