Page 1 of 1

no email when comment is made

Posted: Wed Sep 27, 2006 2:22 pm
by mugs
i don't receive any emails when comments or new entries are made, why is that...is there a special plugin to install, i have tried everything possible to my knowledge, please help

Posted: Wed Sep 27, 2006 5:08 pm
by azel
Have you set your personal preferences to email you when a comment is made?

Posted: Wed Sep 27, 2006 7:33 pm
by judebert
Additionally, many servers won't send emails unless the "From" email address is recognized. In Configuration -> General Settings, make sure the "Blog's E-Mail Address" is recognized by the mailserver.

Posted: Thu Sep 28, 2006 3:59 am
by mugs
how do i get about doing this, i am on a shared hosting package

Posted: Thu Sep 28, 2006 5:27 am
by judebert
Check the personal settings under admin -> Manage Users -> {Your User}. Ensure you're set to receive email when entries are created.

Check the blog email by asking your server admins. Sometimes they recognize anything@yourdomain; sometimes they only recognize youraccount@theirdomain. Only the admins know for sure.

Posted: Thu Sep 28, 2006 5:44 am
by mugs
did the relavant changes and also on the hosting section to cach all emails with any address, present or not

Posted: Thu Sep 28, 2006 6:19 am
by judebert
The changes made in the hosting section only redirect mail addressed TO you. The problem is that many hosts reject mail unless the FROM address is recognized as valid. Serendipity uses the PHP mail() routine, which sends the mail depending on the server configuration. Serendipity uses the "Blog's Email Address" that I mentioned earlier as the FROM address. If the server doesn't recognize it, the mail will be ignored.

You can give it a try by creating this file on your server:

Code: Select all

<?php mail('to_me@mydomain', 'fromaddress@as.configured.in.blog', 'Email works on the server!');
?>
Save that on your server as testmail.php and call it from your browser. If you receive an email, then the FROM address is fine and your server is handling mail properly (and something else is going wrong in Serendipity). If not, the server isn't sending the mail to you. Either the FROM address is being rejected, or the server isn't set up to send email.

Posted: Thu Sep 28, 2006 6:23 am
by mugs
buddy i tried what you said, it did not work

Posted: Fri Sep 29, 2006 3:44 am
by judebert
Assuming you substituted the email addresses, and that "it did not work" means you received no errors and no email, that indicates that Serendipity <i>cannot</i> send you email. It tries; the script does the same thing Serendipity does. But the server doesn't let it happen.

I'd recommend sending your script to your server admin and asking why it doesn't work. Fix the script, and you fix the blog.

Posted: Fri Sep 29, 2006 6:18 am
by mugs
thanks for all the help buddy, would you know where the script file is located

Posted: Fri Sep 29, 2006 1:17 pm
by mugs
it finally works, i had to incorporate the php.ini file and change the send mail address to mine. and i received the mail,just one more question is there any way to change the from address to the person's email address who made the comment

Posted: Fri Sep 29, 2006 4:50 pm
by judebert
I think that would require some code changes.

What did you have to do in your php.ini file?

Posted: Fri Sep 29, 2006 6:08 pm
by mugs
changed the sendmail address in the php.ini file to the default address given in my admin panel