O$ - kCr and kLf in Plain Text Email

Michael Mantkowski michaelj at clientrax.com
Fri Dec 16 13:51:41 EST 2011


Scotte,

I think you nailed it.

I did have one location that had a standalone LF.

Changed it to a CRLF and error goes away.

Thanks,

Mike

*********************************************************************
Michael Mantkowski
ClienTrax Software
1-800-416-2815
*********************************************************************

-----Original Message-----
From: omnisdev-en-bounces at lists.omnis-dev.com
[mailto:omnisdev-en-bounces at lists.omnis-dev.com] On Behalf Of Scotte
Meredith
Sent: Friday, December 16, 2011 12:10 PM
To: OmnisDev List - English
Subject: Re: O$ - kCr and kLf in Plain Text Email


On Dec 16, 2011, at 7:36 AM, Michael Mantkowski wrote:

> Having an issue with different email providers using the SMTP command.
> 
> We create Plain Text Reminder messages in our application that are 
> sent via the SMTP command.
> 
> With some ISPs you can use CR to start a new line.  On others, you 
> need to use CRLF or all the sentences run together.  However, on other
ISPs (i.e.
> Yahoo Plus) if you use a LF you get Error -1229 sent back from the 
> SMTP command and the email fails.
> 
> Does anyone know how I can account for all situations?

According to RFC 2822, the Internet Message Format standard:

The body of a message is simply lines of US-ASCII characters.  The
   only two limitations on the body are as follows:

   - CR and LF MUST only occur together as CRLF; they MUST NOT appear
     independently in the body.

   - Lines of characters in the body MUST be limited to 998 characters,
     and SHOULD be limited to 78 characters, excluding the CRLF.


Scotte Meredith
SpoMacGuy at gmail.com

_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com




More information about the omnisdev-en mailing list