I'm having no luck sending any emails via the "mail()" command. Here's the simple code I'm using:
<?
$to="steve@younis.com.au";
$subject="hello";
$message="message body";
if (@mail($to,$subject,$message)){
echo "mail was sent";
}
else {
echo "mail was not sent";
}
?>
Not only don't I get an email sent to me, but I get neither the "mail was sent" or "mail was not sent" message.
The Apache server is set up with PHP 4.2.2 with the following details for the sendmail settings:
sendmail_from | me@localhost.com
sendmail_path | /usr/sbin/sendmail -t -i
SMTP | localhost
Any ideas?
Thanks,
Steve Younis