I have a very odd problem that I'm not sure is a programming issue or a server issue :-p.
Basically I'm sending an email to an exchange distribution list that includes a PHP stack trace; during certain faults the trace includes really high level information such as the machine's environment variables (during file reads, etc.).
I went through a copy of the email line by line until the email sent and it appears the line:
[SUDO_COMMAND] => /etc/init.d/httpd restart
is the culprit. Adding a string replacement in before the email is sent allows a successful send. What I don't understand is WHY these stream of characters are causing the issue ONLY on the distribution email.
If I send the email to myself as well, i.e. "email@example.com; firstname.lastname@example.org", then I get the email fine. Re-ordering the list doesn't make a difference the group never gets the email.
Because the individual gets the email and not the group I'm assuming the fault is with exchange and some rogue filtering - I've gone through it with the sysadmins and there's no filtering of any sort on that group... so maybe it's a bug?
I can't find anyone else having recorded this specific fault so I figured I'd open it here. For now I'm just not using the distribution list but it'd be nice to eventually find the solution.
Many thanks, Chris