I use the following code to open the users default mail client with values set in reciever, subject and body fields:
Expand|Select|Wrap|Line Numbers
- Dim msg As String = String.Format("mailto:{0}{1}", Uri.EscapeDataString("example@example.com"), "?")
- msg &= String.Format("subject={0}{1}", Uri.EscapeDataString("subject text"), "&")
- msg &= String.Format("body={0}", Uri.EscapeDataString("body text"))
- System.Diagnostics.Process.Start(msg)
For Outlook (2003) strange things happens. Fx. "æ", "ø" and "å" are shown as "æ", "ø" and "Ã¥".
Should I be using an alternative escape function or does anyone have an idea on how to solve this?