actually if I run the mail function in the php console (php -a) it works, but if i do it on a php script and I execute it from chrome it doesnt work.
<?php
mail('test@gmail.com', 'Subject', 'Hello!');
?>
Im using Nginx with PHP-FPM and ssmtp SMTP server.
Note: Investigating, the problem is on Nginx or FPM, when i run the script from terminal it works.
Thanks!