I think this is your problem:
"From: ".$name." <".$email.">\r\n"
gmail, hotmail , "From: otherdomain.com", "mail.yourdomain.com" - .
"From: YourWebsiteName <noreply@yourwebsite.com>\r\n"
."Reply-To: ".$name." <".$email.">\r\n"
.
, - google "email header injection php"!