I need some help. It is all about the PHP mail function in ubuntu since when i accessing it through browser it returns false, but when i accessing it through command line it works. I am using postfix. Why is it? Thank You in advance.
<?php
$res = mail ( "test@gmail.com", "Test from de lappie..." , "Hello World!" );
var_export( $res );
?>
- when accessing it through browser. the browser displays "false",
- when accessing it command line "php /var/www/adm/test.php" it works, i receive the mail.