I have an ASP.Net Application that sends text messages to mobile phones. It does this by sending an email. For instance, if your phone number is 555-555-5555 and your wireless carrier is Verizon, you can send an email to 5555555555@vtext.com and it will show up as a text message.
I want to be able to include a newline in the body of the message. How do I do this? Also please note that my ASP.Net program gets the message from a database (MS SQL Server) so what I really need to know is what characters to include in the message body when I store it in my database.
I already tried \n but it just showed up in the text message as \n
Assuming you are building the bodies yourself prior to storage, the easiest way is to just use stringbuilder when building your strings and us
.AppendLine(stuff);for each lineyou can also use Environment.NewLine