Here is my code in php to send email:
<?php
$to = 'xyz@xyz.com';
$subject = 'Customer_Details Report';
$msg="some message";
if($result)
{
echo 'your email has been sent';
}
else
{
echo'email not sent';
}
?>
How do I set up mercury in XAMPP to send the mail.