I dont know whats happening here but I cant join two strings together with a newline between them. I use the following code in my Windows Store App to open the email client and prefill an email:
String recipient = "me@here.com";
String Bodymsg = "Line One" + Environment.NewLine + "Line Two";
String SubLine = "Report Fault";
String BodyText = "mailto:?to=" + recipient + "&subject=" + SubLine + "&body=" + Bodymsg;
var mailto = new Uri(BodyText);
await Windows.System.Launcher.LaunchUriAsync(mailto);
This works fine but the body comes out like this.
Line OneLineTwo
What I want to get is
Line One
Line Two
I have tried using "/r/n"
and "/n"
instead of Environment.NewLine
but it gives the same effect. Any ideas where I'm going wrong?