PDA

View Full Version : PHP Mail


mgd711
02-18-2008, 12:12 AM
About 10 months ago I asked here why PHP mail wasn't working on my blog.

So I'm back again with a similar problem......

I switched host's on Saturday and installed my blog on a new server, everything worked fine until yesterday evening when I stopped getting e-mail's on comments.

The Includes/function_comments.php file read

// Additional headers
if ($comment_email!="") $headers .= "From: $comment_name <$comment_email>\n";
else $headers .= "From: PIXELPOST <$admin_email>\n";

$recipient_email = "admin <$admin_email>";
} // if (cfgrow['htmlemailnote']=='no')

so I changed it to....


// Additional headers
if ($comment_email!="") {$headers .= "From: $comment_name <$admin_email>\r\n"; $headers .= "Reply-To: $comment_name <$comment_email>\r\n"; }
else $headers .= "From: PIXELPOST <$admin_email>\r\n";
$recipient_email = "admin <$admin_email>";
} // if (cfgrow['htmlemailnote']=='no')

Which worked fine on my old host.

As I see it this is unlikely to be a PP problem but a problem with my new host.

The question is whats changed?



Mike

jaywilliams
02-18-2008, 01:22 AM
Try using the mail test script, found here:

http://www.pixelpost.org/forum/showthread.php?p=53425#post53425

That way you can find out if it's a server issue or a Pixelpost issue.

mgd711
02-18-2008, 05:52 AM
Thanks Jay,

Did that and is say's "Mail successfully sent to <xxxx@xxxxxxxxx.com>"

But nothing arrived in my In Box.



Mike

austriaka
02-18-2008, 06:07 AM
Mike, do you have a spam filter in your email account? Try to check this out, perhaps your emails are cought by that?

mgd711
02-18-2008, 11:54 AM
Checked and double checked the spam box, nothing there.

The e-mail address the comments should be sent to is a Yahoo hosted domain. My other e-mails are coming through ok and I can e-mail from hotmail to it with out any problem.




Mike

jaywilliams
02-18-2008, 03:26 PM
Sounds like you need contact your web host.
They seem to have php's mail function configured strangely.

Send them the link to the mail test, and ask them why it doesn't work.

austriaka
02-18-2008, 03:29 PM
and especially why it worked before...
I still suspect the spam filter of your hoster, are you sure that they show you all the spam?

And the silly question (sorry): plz check if the admin mail option is set to "yes" in Admin options

mgd711
02-18-2008, 09:17 PM
Problem solved!!

Hard to believe but it was operator error, on my part that is..............

I created a new account for my other domain, the one the e-mail account is on, in preperation of moving that site onto the new server. I didn't change the MX records or the DNS just an empty account however it confused the hell out of sendmail!

I expect a few more speed bumps along the road but I'm learning!




Mike

jaywilliams
02-19-2008, 03:34 AM
Yup that would do it.

Nothing like some misconfigured DNS to cause all sorts of strange issues.
It sounds like you've got it under control now. :)

austriaka
02-19-2008, 05:45 AM
great that it is working now!
(and great it is not fault of Pixelpost though ;-))