I have a client who hosts with Go Daddy and I have been messing with this email script for days trying to get it to work. The weird thing is it will send if I remove the line
If I include that line in the script, the email never sends. Any help would be greatly appreciated, this is driving me crazy and Go Daddy is no help at all. Here is my full code (without the brackets around the html):
//Start session
session_start();
//Validation error flag
$errflag = false;
//Function to sanitize values received from the form. Prevents SQL injection
function clean($str) {
$str = @trim($str);
if(get_magic_quotes_gpc()) {
$str = stripslashes($str);
}
$headers = array(
"/to\:/i",
"/from\:/i",
"/bcc\:/i",
"/cc\:/i",
"/Content\-Transfer\-Encoding\:/i",
"/Content\-Type\:/i",
"/Mime\-Version\:/i"
);
$str = preg_replace($headers, '', $str);
return strip_tags($str);
return mysql_real_escape_string($str);
}
I have a client who hosts with Go Daddy and I have been messing with this email script for days trying to get it to work. The weird thing is it will send if I remove the line
If I include that line in the script, the email never sends. Any help would be greatly appreciated, this is driving me crazy and Go Daddy is no help at all. Here is my full code (without the brackets around the html):
Thanks in Advance