Forum Moderators: coopster
Both me and a my friend are on Web Hosting servers. Now, I`ve just set up a Guestbook script on his server, but the e-mail notification to let you know if a new reply has been posted doesn`t work. I set the script up on my server and it works fine. The script uses the standard PHP mail() function.
Now I`ve tried a simple contact form on his server, again using the mail() function and this works fine.
So, just curious, how come the mail() function works with the contact form, but not with the guestbook script?
I have since contacted the hosting company about this and they say that everything is configured fine with sendmail on the server and both scripts should work.
So, its a mystery. I was just wondering if any of you guys had encountered a similar problem?
Thanks. :)
Is the mail not being sent or not being received?
Have you checked your mail headers?
Have you tested the return value from the mail function to see if the mail function is failing?
Have you looked at the mail logs to see if the email even appears? (probably not a possibility on a shared host though)
I have also changed the code around a little to try and get the mail to work, but nothing, so now I`m back to the original script .php file. I have also deleted and reuploaded the files, figured it was a long shot but worth a try. Still nothing.
My friend isn`t that bothered, but I`m kind of curious myself. If it mysteriously starts working I`ll post again.
:)
At least I know for next time. :)