Click here to Skip to main content
15,393,377 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I installed postfix for sending mails to the customer from my PHP application. I wrote this in php.ini file
PHP
sendmail_path = /usr/sbin/sendmail -t -i

didn't work then I changed it to
PHP
sendmail_path = /etc/postfix

Can anybody tell why it's not working. I checked mail logs it's status is mail sent. It doesn't show mail is delivered. Anymore changes I need to do in /etc/postfix/main.cf file? Pls help

What I have tried:

PHP
sendmail_path = /etc/postfix
Posted
Updated 14-Apr-22 22:18pm
v2

1 solution

Let's modify the existing path with:

sendmail_path = /usr/sbin/sendmail -t -i -f abc@xyz.com
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900