This commit is contained in:
Bertrand Cournaud 2012-05-21 17:19:32 +02:00
parent 970b236363
commit 2d4de36df0

View File

@ -16,7 +16,16 @@ if (isset ($_POST['send']))
echo 'La question est : ' . $question . "<br/>";
echo 'La réponse est : ' . $answer;
mail('bertrand.cournaud@gmail.com', 'Nemubot', 'Ceci est un test');
$to = "bertrand.cournaud@gmail.com";
$subject = "Nemubot";
$message = "Ceci est un test";
if (mail($to, $subject, $message))
{
echo ("Email sent");
}
else
echo ("Error with the email");
}
}