I switched to a new server, and from apache to nginx.
Everything is working great except the php mail function (returning true but mail not received).
What could I have possibly forget to install/configure during the switch that caused the issue ?
Thanks to all
2 reasons pop to mind
You did not install sendmail.
You did not configure your php.ini for php-fpm correctly.