I am having a very strange issue with mail function in php.
- I have configured postfix and when executed from command like email message is sent. For example this works: echo "Hello" | mail -s "Test" my@me.com
- I can send email from command like using php no problem. For example this works: php -r "mail('test@gmail.com', 'test', 'test')"'
but when trying to send mail with php code from apache from inside of php web page it does not even attempt to send email. If I check the mail.log, I see it does not even record anything into log file.
Feels like something prevents apache from sending email.
Please advise me how to fix this issue on Mac?
Thank you!