- Code: Select all
<?php
$ADDR = "test@aol.com";
if (mail($ADDR,"Testing","This is a test")) {
echo "Mail function succeeded<br />";
} else {
echo "Mail function FAILED<br />";
}
?>
If I then navigate to the url mywebsite.com/test.php, will the php code automatically be executed? And could someone please confirm that the code is correct. When I navigate to the url, I get returned the succeeded message. So it appears it works, but the mail never gets delivered. I have tried different email addresses all with different providers.
Could anyone shed some light on what my issue may be?
Many thanks

