phpemailunixsendmailphp-ini

sendmail_path in php.ini for unix [full name of email sender]


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 fine

sendmail_path = /usr/sbin/sendmail -t -i -f'emailaddress@example.com'

but if I try to add name as below it fails

sendmail_path = /usr/sbin/sendmail -t -i -f'"Full Name" <emailaddress@example.com>'

You may suggest to use sendmail_from instead but as I mentioned it's Unix server and whatever is set in sendmail_from will be ignored. Does anybody know how to fix this issue?

Any help will be appreciated in advance.


Solution

  • Try the version below:

    sendmail_path = /usr/sbin/sendmail -t -i -F"Full Name" -f'emailaddress@example.com'
    

    WARNINGS