Hey everyone new to the forum and excited to participate.
I have been pulling my hair out trying to figure out how to solve a bug I am receiving from PHP's mail function. I run a tikiwiki website https://dev.tiki.org/Development for reference.
One of the features the website has is sending daily email reports to users who want to know what changes have happened on the website each day. Right now one of my sites is refusing to send out these reports and I have tracked the bug down to being some interaction between tiki's source code and the default php mail function. When I attempt to send these daily reports I am greeted with.
More than one "from" person
This is the line where the error occurs
$this->mail->send(array($userData['email']));
The purpose of this line is to pass an array of user emails (the people to receive reports) to the mail() function for sending. I have already looked at the array and it is generated correctly, the issue is most likely not there.
I have learned this is an error thrown by PHP. Everything I have looked at has said that this has to do with the parameters of sendmail_path in the php.ini. All forum posts and help has mentioned that in order to fix this bug I need to remove the -f flag from this setting. The problem is, my sendmail_path is the default setting. That is to say:
sendmail_path = /usr/sbin/sendmail -t -i
I have attempted to change this to just be the -t flag or just be the -i flag with no luck. Could anyone offer any insight as to why I am getting the more than one "from" person error?
Thanks