Mental Note: Our Server Sucks
Posted on November 8th, 2006 by wil
Geek alert: if you’re not a server geek, there’s nothing to see here… move along now…
Sometimes it helps to read the fine print. When using PHP’s mail() function, some of us need to remember simple things, like not using \r:
Note: If messages are not received, try using a LF (\n) only. Some poor quality Unix mail transfer agents replace LF by CRLF automatically (which leads to doubling CR if CRLF is used). This should be a last resort, as it does not comply with RFC 2822.