Archived Forum Post

Index of archived forum posts

Question:

Line Returns lost when sending email

Mar 31 '17 at 06:34

Has anything changed in relation to line returns in Mailman between 9.5.0.43 and 9.5.0.50?

I've just upgraded my project to the latest version and now when sending emails using the same code I'm now getting emails come through to recipient as

Line1Line2Line3

instead of

Line1
Line2
Line3

I'm unable to find a download of 9.5.0.43 again to confirm that it's a change in Chilkat that has caused the problem opposed to any other changes I have made, do you have an archived link so I can confirm?


Answer

I am not aware of anything that would cause it, and no other users have reported the same.

To help others understand how to recreate the problem, create a very simple (meaning the simplest possible case) that reproduces the problem with no unknowns (i.e. all values passed to Chilkat methods are hard-coded literal strings so we can see the exact data.)


Answer

I've recently had to look at this issue again and now have some more info.

The lines from FileMaker are separated using carriage returns but windows expects CRLF.

I no longer have the 9.5.0.47 and 9.5.0.49 downloads to test with, but would any code have changed between them that would have previously been automatically converting CRs to CRLFs?

I found the below in the Release Notes for 9.5.0.48 but not sure if this change could be related if made internally or would only effect CSVs?

"CSV: When writing CSV’s, the inner LF, CRLF, etc. of a row will now remain unmodified. The Crlf property controls the line-endings for each entire row, but should have no effect (and cause no changes) of LF / CRLF usage within any given cell."

If not is this something that can be added?

Hope I've made sense.