Control Web Panel

WebPanel => E-Mail => Topic started by: ltarrant on May 14, 2024, 10:50:17 AM

Title: PHP Mail() Send Path
Post by: ltarrant 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
Title: Re: PHP Mail() Send Path
Post by: overseer 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.
Title: Re: PHP Mail() Send Path
Post by: ltarrant 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.
Title: Re: PHP Mail() Send Path
Post by: Starburst 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.