mail() not working in php

Status
Not open for further replies.

asteckles

New Member
Messages
9
Reaction score
0
Points
0
hello. your mail() function does not seem to be working. It says "Mail Send" but nothing actually is sent.

<?php
$to = "recipient@example.com";
$subject = "Hi!";
$body = "How are you?";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>

Note, this is not a coding issue.
 
Status
Not open for further replies.
Top