I'm using Windows Vista OS.
PHP, MySQL as the database and Apache web server.
I want to send notification to those who want to join in my site.
But the problem is when I click submit. It doesn't send anything to the email address of the user.
What to do you think is the best solution for this?
<?php
$to = "[email protected]";
$subject = "Hi!";
$body = "Hi,
How are you?";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…