Q

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.

This was first published in April 2005

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.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchCloudComputing

SearchSoftwareQuality

SearchSOA

TheServerSide

SearchCloudApplications

Close