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

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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: