php custom sendmail_path is not working

#1
hello,

I have add my custom sendmail_path, it's not working.

/usr/local/lsws/lsphp73/etc/php.ini
[mail function]
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
; sendmail_path = /usr/sbin/sendmail -t -i
SMTP = localhost
smtp_port = 25
sendmail_path = /usr/local/bin/phpsendmail
mail.add_x_header = On

------------------------------------------------------------------------------------------------------------------------------------

[root@clientserver ~]# ls -l /usr/local/bin/phpsendmail
-rwxr-xr-x 1 root root 961 Apr 19 11:52 /usr/local/bin/phpsendmail

SERVER CONFIGURATION

[root@clientserver ~]# cat /etc/os-release
NAME="CloudLinux"
VERSION="7.7 (Valery Bykovsky)"
ID="cloudlinux"
ID_LIKE="rhel fedora centos"
VERSION_ID="7.7"
PRETTY_NAME="CloudLinux 7.7 (Valery Bykovsky)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:cloudlinux:cloudlinux:7.7:GA:server"
HOME_URL="https://www.cloudlinux.com/"
BUG_REPORT_URL="https://www.cloudlinux.com/support"

[root@clientserver ~]# /usr/local/lsws/bin/lshttpd -v
LiteSpeed/1.6.13 Open
module versions:
modgzip 1.1
cache 1.62
modinspector 1.1
uploadprogress 1.1
mod_security 1.3
(built: Thu Apr 30 13:36:22 UTC 2020)
module versions:
modgzip 1.1
cache 1.62
modinspector 1.1
uploadprogress 1.1
mod_security 1.3
 
Top