We're having a problem with email content, where some spam filters and email clients are having a problem with our end of line characters. Our Active4d sendmail method - being on a Mac server - is using LF to create new lines but Windows needs CRLF. Any suggestions would be appreciated on how we can progress: should we generally use CRLF? Why are text files from BBEdit, which use LF, correctly displayed in the email client, where texts generated by Active4d (e.g. database content) aren't?

I'm not sure, but I think the internet standard for email specifies LF as the line ending. If you are generating text from Active4D, it is totally up to you what line ending to use. Don't use writeln, that will use the platform-native line ending, use write + "\n". 4D also stores line endings as CR, so you will have to use 'replace string' on text pulled from the database.

The specific problems we're getting are

a) the first character of every line is missing in Outlook Express/ Windows, so that the source looks like this:

h5>This is a header level 5</h5>
p>This is a paragraph.</p>
img src="image.gif" alt="" />

The source code of exactly the same email is "normal" (i.e. the characters aren't missing) in Mac email clients.

b) many emails are rejected and bounced back from remote servers as they have "missing" end of line characters.

As far as I'm aware, we've been using CR (\r - backslash-r) and not LF (\n backslash-n): is this the root of the problem?

Many thanks and best regards
Mark

_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to