I have a PHP program using the mail()
function. I have this running on a Linux server. Normally it is setup to run over the Linux sendmail function but my machine is setup to use Postfix.
Can I use the PHP mail function over postfix and if so does anyone know how to make that work?
mail()
uses script given in php.ini file - "sendmail_path".
If You want to change it, you need to change "sendmail_path" in php.ini or script itself.
try to revise this in php.ini
:
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
;sendmail_path = /etc/postfix
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.