Hello
I am starting to learn PHP and run it on my Windows computer with Apache Web server locally.
I was trying to learn how to use the mail() function and tried to send myself an email to my yahoo account but the mail function fails everytime.
here is my code:
<?php
$success = mail("<myaccount>@yahoo.com", "subject", "message");
if ($success ) {
echo "mail was sent succesfully\n";
}
else {
echo "error in sending the mail\n";
}
?>
myaccount is obviously my yahoo account
what could be the problem?