NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: John Fligg on March 18, 2012, 11:07:56 AM

Title: Send email not adding CR/LF
Post by: John Fligg on March 18, 2012, 11:07:56 AM
I am using strings (16384) to build my message text but when I send email the incoming text is shown as one continuous line without the CR/LF.

In other words, on my memory form I have a string field which is type 'text'. I enter the message but it is received as one long string. I was using a Memo filed but changed that as I thought that would cause problems.

I am baffled why this should be. Any ideas would be appreciated.

Thanks

john
Title: Re: Send email not adding CR/LF
Post by: Rob de Jager on March 18, 2012, 11:29:36 PM
You must define your CR/LF as ascii values, i.e. <13,10>.

Cheers

Rob
Title: Re: Send email not adding CR/LF
Post by: Bruce on March 19, 2012, 12:19:06 AM
if it's coming in as one long string (as per your other thread) then it's not that surprising it's going out as one long string as well....
Title: Re: Send email not adding CR/LF
Post by: John Fligg on March 19, 2012, 12:41:49 AM
Soory must have misled you Bruce. I check the calue of ThisSendEMail.MessageText just prior to the send and there are new paragraphs in there. Hopefully the latest release fixes that.

Thanks

John
Title: Re: Send email not adding CR/LF
Post by: John Fligg on March 19, 2012, 01:42:54 AM
Rob - sorry I think you missed the point. I have no control over the CR,LF format.

It is the user entering text into a Text box (defined as a String) so pressing Enter on their keyboard enters whatever code is required.

The string just prior to sending appears to have CR/LF added but when received no CR/LF appears to be present. As if they have been stripped out.

John