Godaddy Hosting / PHP Email Functions

Hey !! i got a Godaddy (terrible) hosting…and im using this php code for emails… for some reason isn’t working …i’ve been searching all arround internet and seems to be that Godaddy has problems with php .
The i tried this answer

<?php

mail(“you@domain.com”, “test message from godaddy”, “this is a test message, if you are reading this the email was sent successfully.”);

?>

and it works …but i need this one !!

<?php
$name = $_POST[“id”];
$from = $_POST[“from”];
$message = $_POST[“msg”];
$subject = “wh0w | Contact | " . $_POST[“objet”];
$msg = utf8_decode($msg);
$msg = str_replace(”\\", “”, $msg);
$msg = stripslashes($msg);
$msg .= "
";
$body = "Message de : " . $name . ", " . $from . "

";
$body .= $msg;

mail(“ezequielavaro@gmail.com”,$subject,$body);
echo “statut=ok”;
?>

I dont know much about php …does any body knows a solution ?

Thanks

Godaddy has a built-in mail.php and you have to ‘include’ it.

and make sure you implement some sort of captcha before you implement code like this…otherwise it may be spammed…have seen it happen many time so just a suggestion

I really apreciate your help guys…i was serching about how to “inclued” the code…and also reading more and more about how to make the code more safe…and both of you are right…the truth is…i change my windows for a linux plan in Godaddy…and it is the same…
This is what i get now using the same come posted below. I dont want to be a pain any suggestion ? do i still need to include something else in that code ? i comapred with many other …i mean…im lost seems to be ok…

From : xxxxx
Subject : xxxx
Message : EMPTY

for some reason …i don’t get the body of the message …