PHP Mail() Send Path

Started by ltarrant, May 14, 2024, 10:50:17 AM

Previous topic - Next topic

ltarrant

Hi,

I am trying to set PHP.INI file to support mail().

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = ?????

However, all the the sendmail_path I have tried don't resolve the issue.

Is any one able to confirm the correct sendmail_path for CWP7 setup?

Luke

overseer

Consider moving to SMTP authenticated mail sending. PHP's mail function is considered a security hole and often disabled on shared hosting servers.

ltarrant

This is a development server with limited access. I appreciate the security implications and for a production or shared environment we would stick with authenticated SMTP but I would still like to figure out how to enable this.

Starburst

What OS & version are you running?

If AlmaLinux 8, install s-nail, which takes over sendmail, mail, mailx.
And can be run from any location.