So, we're avoiding using sendmail for obvious security reasons on a highly secured FreeBSD box. However, we need to get mail out of that box to an SMTP relay server. So, we heard about ssmtp, which is a sendmail emulator.
Well, this works great from the command line, can send emails to the relay server just fine. however, we haven't been able to get it to work with the basic PHP mail() function.
Can anyone tell me if they've gotten ssmtp to work with PHP's mail() function? If so, what do we need to do to tell PHP to use it instead of sendmail?
Thanks!