Hi I was trying to send Email using php in xammp I have already started Mercury Service
Heres my code
<?php
$to = "[email protected]";
$subject = "Hi!";
$body="test";
$headers = "From: [email protected]";
if (mail($to, $subject, $body, $headers))
{
echo "Message successfully sent!";
}
else
{
echo "Message delivery failed...";
}
?>
when i execute code i am getting output as
Message successfully sent!
But when i check my mail box.I dont see mail.I checked all folders in my Mailbox but its not present