Problem solve Get help with specific problems with your technologies, process and projects.

Escape from mailto:

I am launching a default email client using mailto in C#.NET. I have problems in displaying email body text that includes carriage returns. I tried using "vbCrlf" but it did not work. Kindly let me know how to include carriage returns in the email Body. - K.R.R.

You have to compose the mailto: link with escaped characters, as it will be used as a link in the browser. The escaped string for a new line is %0a For example:

mailto:?subject=Daniel Cazzulino answers! &body=You can insert %0a line %0a breaks %0a%0a even more than one.

Dig Deeper on C# programming language

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.