I have a form, which when processed should send me an email. What I recieve is a slightly stern message informing me about the error above, and none of the information enetered in the form.
Searching round the forums suggest that the mails server cannot resolve the address- but I can't see if or why that's a problem.
// Check, if message sent to your email
// display message "We've recieved your information"
if($send_message){
echo "Thanks: I'll get back to you as soon as I can!";
}
else {
echo "There seems to have been a problem. Please phone or text instead?";
}
?>
Many mail servers are configured to allow mail to only be sent with "From:" header which is a valid email address on that server. Therefore you may have to change your from address to your email address on that server, then add a "Reply-To:" header for the user's email address.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Hi - I'm using the same php script and am having the exact same problem where the information comes to my inbox from "invalid_address@.syntax-error" and also none of the information that the user provided on the input form such as name and email address are in the body of the email that is sent to me. I'm sorry but I don't understand what NogDog is saying in his answer below?
Many mail servers are configured to allow mail to only be sent with "From:" header which is a valid email address on that server. Therefore you may have to change your from address to your email address on that server, then add a "Reply-To:" header for the user's email address.
I'm rather new at this. Can anyone explain this in terms I can understand?
See my reply, above, and the tell me what part(s) of it you do not understand.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
I have failed to figure out where the problem could be. Looking at your post, I wonder what the e-mail address should be (Do i get this from my host?..am totally puzzled) and how to fix the "Reply to" variable. To make matters worse, other pages like newsletter subscription, confirm registration are working fine, it's only the forgot password that gives this error. please, help!! Thank you in advance.
Bookmarks