Can some one see why this will not send, it will send if the From header is not there but wont with it.
mail($infoResult["email"],"Requested Information","The message here","From: $email<$email>\r\n");
hmm... PHP manual says that "\r\n" must be used to separate additional headers.
Since you only have 1, maybe using:
mail($infoResult["email"],"Requested Information","The message here","From: $email<$email>");
is the solution?
I just tried that but still it wont send the email
Ok i just got what i missed out an its adding a \ infront of the @ sign, which brings me to this problem.
If i want to insert the email address of the header (btw its from a file called vars) into a input box how can i get rid of the \ sign and when i save the vars file again add it back there?
Sorry but nevermind again i worked out how to do that aswell. I had a think about it and realised str_replace would work. So i just used that like below, then reversed it
$email = str_replace ("@","@",$email);