Chapter 11 - Test mail()
<?php //testmail.php from localhost using Mercury Mail in XAMPP $to = "noreply@ashlietaylor.com"; $subject = "Test message using localhost"; $body = "This is a test message sent through Mercury Mail in XAMPP on localhost."; $header = "From:postmaster@localhost"; echo "disabled to prevent spam" // if(mail($to,$subject,$body,$header)) { // echo "Message successfully sent."; // } else { // echo "Message not sent - check your settings!"; // } ?>