How to open default email client?

  • Thread starter Thread starter Guest
  • Start date Start date
Matt,

If you just wanted to open the default email client, then I would just
use a "mailto" url and pass that to the static Start method on the Process
class.

However, since you want to attach a file, you need a unified way of
doing this, since not all email clients are the same. To that end, I think
you will have to call the functions in the MAPI API through the P/Invoke
layer (most mail clients should support MAPI).

Hope this helps.
 
Can you give me the code?

Nicholas Paldino said:
Matt,

If you just wanted to open the default email client, then I would just
use a "mailto" url and pass that to the static Start method on the Process
class.

However, since you want to attach a file, you need a unified way of
doing this, since not all email clients are the same. To that end, I think
you will have to call the functions in the MAPI API through the P/Invoke
layer (most mail clients should support MAPI).

Hope this helps.


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


Mateusz Rajca said:
Hello!

How do I open the default email client, and attach a file?

Matt
 
Hello Mateusz,

See there http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q314201

PS: u can't use mailto because there is no standart way for mail clients
as was mentioned by Nicolas

MR> Hello!
MR>
MR> How do I open the default email client, and attach a file?
MR>
MR> Matt
MR>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 

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

Back
Top