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 last published in April 2005

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.

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

Please create a username to comment.

-ADS BY GOOGLE

SearchCloudComputing

SearchSoftwareQuality

SearchSOA

TheServerSide

SearchCloudApplications

Close