• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

solved: PHP mail() not sending to multiple recipients

Fullmetal Chocobo

Moderator<br>Distributed Computing
Moderator
Is there any reason that calling the mail() functions (setup to /usr/sbin/sendmail -t -i via php.ini) wouldn't send to multiple recipients? I have it working on one server, but not another. I'm in the process of doing a stare & compare between the PHP configurations (via phpinfo() ), but I was just wondering if there was something obvious that I'm missing.

Any thoughts or ideas are appreciated. I will work on generating a file with the pertinent code and I will be posting that.
 
Last edited:
Are you sending with a loop or all shoved into the $to ?

I've always used a loop.

All shoved into the $to. I will try a loop, since I know sending them solo works fine. I just find it weird that it works on one server and not on another...
 
comma separated should work.
same version of php? same config?

any error messags?
does it send to just the first address when you give it a comma separated list of addresses?
 
I've tried comma, space, period, and semicolon separated. Also just tried an array configuration using walk_array( $array, "send_email" ) and same result -- works on development server, not on production. UGH.

Same version of OS, PHP, and everything else. A few differences in packages, but nothing that stands out right off the bat. I'm gonna look at the configuration of the production server some more, because this is just getting wierd.

EDIT: The array version works. Apparently it helps if you pass the right variable during a function call. Thanks for the suggestion of using an array.
 
Last edited:
Back
Top