no email when comment is made

Found a bug? Tell us!!
Post Reply
mugs
Regular
Posts: 48
Joined: Wed Sep 27, 2006 2:16 pm

no email when comment is made

Post 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
azel
Regular
Posts: 265
Joined: Thu Apr 21, 2005 4:28 am
Contact:

Post by azel »

Have you set your personal preferences to email you when a comment is made?
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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.
Judebert
---
Website | Wishlist | PayPal
mugs
Regular
Posts: 48
Joined: Wed Sep 27, 2006 2:16 pm

Post by mugs »

how do i get about doing this, i am on a shared hosting package
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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.
Judebert
---
Website | Wishlist | PayPal
mugs
Regular
Posts: 48
Joined: Wed Sep 27, 2006 2:16 pm

Post by mugs »

did the relavant changes and also on the hosting section to cach all emails with any address, present or not
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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.
Judebert
---
Website | Wishlist | PayPal
mugs
Regular
Posts: 48
Joined: Wed Sep 27, 2006 2:16 pm

Post by mugs »

buddy i tried what you said, it did not work
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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.
Judebert
---
Website | Wishlist | PayPal
mugs
Regular
Posts: 48
Joined: Wed Sep 27, 2006 2:16 pm

Post by mugs »

thanks for all the help buddy, would you know where the script file is located
mugs
Regular
Posts: 48
Joined: Wed Sep 27, 2006 2:16 pm

Post 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
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

I think that would require some code changes.

What did you have to do in your php.ini file?
Judebert
---
Website | Wishlist | PayPal
mugs
Regular
Posts: 48
Joined: Wed Sep 27, 2006 2:16 pm

Post by mugs »

changed the sendmail address in the php.ini file to the default address given in my admin panel
Post Reply