How do I include a newline in a text message sent as email from an ASP.Net application?

Posted by Tim Goodman on Stack Overflow See other posts from Stack Overflow or by Tim Goodman
Published on 2010-04-06T20:39:55Z Indexed on 2010/04/06 20:43 UTC
Read the original article Hit count: 186

Filed under:
|
|
|

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 [email protected] 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

© Stack Overflow or respective owner

Related posts about text-message

Related posts about ASP.NET