Just thought I'd post this on the off-chance that anyone can help..... (possibly Jon, since GeologyRocks is done in php )
I'm trying to get a feedback for to work using php, but it's not working The page displays fine, it appears to work and goes to the success page I created, but the email never arrives in my inbox.
If anyone is interested (and might be able to help) I can post the code I use...
The code looks fine to me. I can't see any immediate problems (that would cause this not to work).
Causes:
o Your host has not configured smtp correctly
o The mail is getting thrown in the spam pit by your isp or your email client
o Typo in the email address
I have to say that this script is not the best script I've seen (I do recognise it from various "Write your first php script webpages though ). The email address is not checked so could be anything (including email headers to send bulk, i.e. spam, email). It would be a lot easier to debug if instead of calling another page (success.php) the script was in that page and the form called success.php: that way you could print out what was being put in the mail form. Also, the return value from mail isn't checked (it returns TRUE or FALSE), letting you know if the mail was actually sent. Try this for starters:
Rank: Calcite
Joined: 20/04/2005
Points: 240
Hi Jenny,
I´m working with php nuke. So, Tell me exactly what do you need, and I´ll try to help you.
Javi.
Lucky man whose destiny is to know the Earth´s secrets. Eurípides (480-405)
Rank: Topaz
Joined: 18/12/2006
Points: 2977
Go ahead and post the code, Jenny (or email to me). I've been staring at php code all day, so I might leave it until tomorrow
Geologists are gneiss!!
Rank: Apatite
Joined: 08/09/2004
Points: 695
The form 'seems' to work fine and goes to the success page like it should, but I never receive the emails....
Here's the script I'm using (in a file named 'sendmail.php'):
and here's the form:
As I said, I've updated all the fields with my email address and necessary webpages, but it just doesn't work
Rainbow Stitching Club - why not pop in for a visit?
---
Archerfish - get paid for clicking your mouse!
Rank: Topaz
Joined: 18/12/2006
Points: 2977
The code looks fine to me. I can't see any immediate problems (that would cause this not to work).
Causes:
o Your host has not configured smtp correctly
o The mail is getting thrown in the spam pit by your isp or your email client
o Typo in the email address
I have to say that this script is not the best script I've seen (I do recognise it from various "Write your first php script webpages though
). The email address is not checked so could be anything (including email headers to send bulk, i.e. spam, email). It would be a lot easier to debug if instead of calling another page (success.php) the script was in that page and the form called success.php: that way you could print out what was being put in the mail form. Also, the return value from mail isn't checked (it returns TRUE or FALSE), letting you know if the mail was actually sent. Try this for starters:
This'll tell you if the email was sent or not...
Hope this helps a bit
Geologists are gneiss!!
Rank: Calcite
Joined: 20/04/2005
Points: 240
Hi Jenny,
Your code is Ok, so...
do you have a free server or paid for....?
Some free servers have the e-mail option released. In that case, you should look for another one.
Tell me about that.
Lucky man whose destiny is to know the Earth´s secrets. Eurípides (480-405)