Contact Form Processing Products - for all your needs

FormMail • Form Encryption • Hosted Forms


This page documents the HEAD_CRLF configuration setting in FormMail.

Type Of Setting

HEAD_CRLF is a LEAVE setting, which means...

LEAVE : you can change this setting if you really need to and know what you're doing, but we recommend that you leave this setting unchanged.


Line termination for email headers.


HEAD_CRLF is the line termination for email header lines. The email standard (RFC-822) specifies line termination should be CR plus LF.

Many server email systems will work with just LF and some actually fail if the email conforms to the standard (CR plus LF).

If you have special requirements you can change HEAD_CRLF to another string, such as "\n" to just get LF (line feed).

Note: the following information was reported by a customer, which he found on "If you're using Postfix for SMTP on FreeBSD you MUST end header lines with \n and not \r\n." The relevant URL is:

Default Value

From version 9 onwards:

$HEAD_CRLF = "\r\n";

Before version 9:



From version 9 onwards:

$HEAD_CRLF = "\n";

Before version 9:


See Also