NetTalk Central

Author Topic: Send email not adding CR/LF  (Read 3225 times)

John Fligg

  • Sr. Member
  • ****
  • Posts: 361
    • View Profile
    • Ambrit Software
    • Email
Send email not adding CR/LF
« 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

Rob de Jager

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Re: Send email not adding CR/LF
« Reply #1 on: March 18, 2012, 11:29:36 PM »
You must define your CR/LF as ascii values, i.e. <13,10>.

Cheers

Rob

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11239
    • View Profile
Re: Send email not adding CR/LF
« Reply #2 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....

John Fligg

  • Sr. Member
  • ****
  • Posts: 361
    • View Profile
    • Ambrit Software
    • Email
Re: Send email not adding CR/LF
« Reply #3 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

John Fligg

  • Sr. Member
  • ****
  • Posts: 361
    • View Profile
    • Ambrit Software
    • Email
Re: Send email not adding CR/LF
« Reply #4 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