Search code examples
c#smsnewlinegsm

include a 'new line' in sms text using GSMCommunication Library


I'm using the GsmCommMain class to send an sms
I want to include a new line in my sms, i tried the normal default Environment.NewLine and the chart set \0x0A but nothing realy had helped..

any suggestions?

Edit:
Environment.NewLine did the job

turns out that the system has this block of code

body = body.Replace("\t", " ").Replace("\n", " ").Replace("\r", " ");

Thank you, issue is solved


Solution

  • Environment.NewLine did the job

    turns out that the system has this block of code

    body = body.Replace("\t", " ").Replace("\n", " ").Replace("\r", " ");