Can't bring my email body to shell.

B

Boki

Hi, all:

I use the code below:
/////////
p.StartInfo.UseShellExecute = true;
p.StartInfo.FileName = "mailto:[email protected]?
subject=testing";
p.Start();
/////

need your advice how to add body ...

I failed when I add "?body=testing", it will become a part of subject.

Thank you!
Best regards,
Boki.
 
B

Boki

Nicholas,

You are right, it works now, and thanks for useful link.

Boki.

Boki,

I'm guessing you are using a url like this:

mailto:[email protected]?subject=testing?body=testing

However, you need to do this:

mailto:[email protected]?subject=testing&body=testing

The amperstand (&) is what you use to delimit various elements of the
email.

For more information, check out RFC 2368, which details the mailto URL
scheme:

http://www.ietf.org/rfc/rfc2368.txt

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


I use the code below:
/////////
p.StartInfo.UseShellExecute = true;
p.StartInfo.FileName = "mailto:[email protected]?
subject=testing";
p.Start();
/////
need your advice how to add body ...
I failed when I add "?body=testing", it will become a part of subject.
Thank you!
Best regards,
Boki.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top