I'm trying to write a very simple php code that sends an e-mail to a given address.
I have this code:
<?php
mail('address@server.com','Test','Test OK');
echo 'Message sent!';
?>
Instead of 'address@server.com'
I've used my own e-mail.
I´ve enabled php using the directions given in foundationphp, because I'm running a mac with snow leopard.
php seems to be working because I´m getting the "message sent!" echo, however i'm not receiving any e-mail.
Any ideas why is this happening? What am I doing wrong?
Thanks in advance!