sendmail_path in php.ini for unix [full name of email sender]
Try the version below:
sendmail_path = /usr/sbin/sendmail -t -i -F"Full Name" -f'[email protected]'
WARNING
It will work with "real sendmail" (sendmail provided by sendmail.org).
It may not work with some "sendmail look alike" provided by other MTAs e.g. postfix, exim, ...
Javad
I am a PHP developer with more than 5 years experience. I have worked with Kohana framework and some template engines. I switched to Symfony2 framework since last year which I believe is a powerful framework. My passion is developing as much as I can
Updated on July 30, 2022Comments
-
Javad almost 2 years
I have a Unix base server and a php base website on it. I am trying to set full name and email address for the sendmail_path in php.ini.
When I set it as below (without name) it works finesendmail_path = /usr/sbin/sendmail -t -i -f'[email protected]'
but if I try to add name as below it fails
sendmail_path = /usr/sbin/sendmail -t -i -f'"Full Name" <[email protected]>'
You may suggest to use
sendmail_from
instead but as I mentioned it's Unix server and whatever is set insendmail_from
will be ignored. Does anybody know how to fix this issue?Any help will be appreciated in advance.