Your browser does not have JavaScript enabled. JavaScript is used to enhance both BitLeap’s website and our Customer Control Panel. You may not be able to use all the functions of our website properly with JavaScript disabled. Sorry for any inconvenience this may have caused.

Loading Data...


PHP Mail and CRLF Terminated Header Lines

When using PHP’s mail function there is a common question, “Do I need to use CRLF (\r\n) or just a LF (\n) at the end of each line of the additional_headers parameter?” It turns out that if PHP is using postfix’s sendmail program to send email then the answer is you only need LF. This is because postfix’s sendmail program will add the missing CR.

Thus, if you do try to use CRLF while PHP is setup the way described above it will produce an email with headers ending in CRCRLF (\r\r\n) which can cause all sorts of issues. One of these issues that we encountered is that some mail content filtering software will quarantine the message as a potential threat. This appears to be due to the software protecting against the Outlook CR Vulnerability.

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*


 

BitLeap Devblog

Welcome to the BitLeap developer blog! Some posts are longer than others, but they all seem to make use of links and code and stuff. Feel free to read, or not to read, as you so desire and prefer.