Author Topic: PHP Mail() Send Path  (Read 534 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
PHP Mail() Send Path
« on: May 14, 2024, 10:50:17 AM »
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

Offline
****
Re: PHP Mail() Send Path
« Reply #1 on: May 14, 2024, 02:53:57 PM »
Consider moving to SMTP authenticated mail sending. PHP's mail function is considered a security hole and often disabled on shared hosting servers.

Offline
*
Re: PHP Mail() Send Path
« Reply #2 on: May 14, 2024, 03:06:59 PM »
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.

Offline
****
Re: PHP Mail() Send Path
« Reply #3 on: May 14, 2024, 08:19:52 PM »
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.