Hey, im trying to use the mail() function, but its not working. This is the script:
<html>
<head>
</head>
<body>
<?php
if(mail("coolgamer48@gmail.com","Test","Test","From:coolgamer48@gmail.com"))
{
echo "Success";
}
else
{
echo "Failure";
}
?>
</body>
</html>
I keep getting "Failure". Is there an issue with my syntax, or is it some other problem?
I'm running Ubuntu, and I've done nothing other than installing PHP to use the mail functions.