PHP FormMail

Form Encryption

 

BODY_LF Setting


This page documents the BODY_LF configuration setting in FormMail.

Type Of Setting

BODY_LF is an OPTIONAL setting, which means...

Pointer

OPTIONAL

you can change this setting if you need to, but the default value is fine for most circumstances.

Précis

Line termination for email body.

Description

BODY_LF is the line termination for email body lines. The email standard (RFC-822) does not clearly specify line termination for the body of emails; the body doesn't have to have any "lines" at all. However, it does allow CR+LF between sections of text in the body.

RFC-821 specifies a line length that must be supported of 998 octets (1000 including the CR+LF).

Most mail systems will work with just LF and that used to be the default for FormMail prior to version 2.00.

With the implementation of HTML template support (using MIME RFC-2045) we've changed the default to CR+LF.

If you want your email bodies to be line terminated differently, you can specify a different value below.

define("BODY_LF","\r\n");

Examples

define("BODY_LF","\n"); // the old default: just LF

See Also

HEAD_CRLF