473,327 Members | 1,976 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

How to open default email client?

Hello!

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

Matt
Jul 9 '06 #1
3 4501
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]
- mv*@spam.guard.caspershouse.com
"Mateusz Rajca" <Ma**********@discussions.microsoft.comwrote in message
news:B5**********************************@microsof t.com...
Hello!

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

Matt

Jul 9 '06 #2
Can you give me the code?

"Nicholas Paldino [.NET/C# MVP]" wrote:
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]
- mv*@spam.guard.caspershouse.com
"Mateusz Rajca" <Ma**********@discussions.microsoft.comwrote in message
news:B5**********************************@microsof t.com...
Hello!

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

Matt


Jul 9 '06 #3
Hello Mateusz,

See there http://support.microsoft.com/default...;EN-US;Q314201

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

MRHello!
MR>
MRHow do I open the default email client, and attach a file?
MR>
MRMatt
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
Jul 9 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Peter Amberg | last post by:
I would like to create a link on my page that opens the standard e-mail application when someone clicks it. It should have at least the subject preset, better if I could preset the body as well. I...
3
by: Gama Franco | last post by:
Hi, I'm working on a project based in Windows Forms, and I need to open the user's default e-mail client (a new e-mail) with some attachments ready to send. Since the destination of the e-mail...
2
by: WATYF | last post by:
Hi there... I need some .NET code to open the default email client. I do not need to open an email (that would be easy), I need to open the application itself, as if the user is clicking on an icon...
4
by: bbdobuddy | last post by:
Hi, How do I open a Microsoft Access 2003 form from Visual Basic.net Thanks in advance bbdobuddy
6
by: Shimon Sim | last post by:
Hi 1) Is it possible to force browser to open image in default windows application? That is what specifies in Folder Options for jpg extension. 2) Also if the 1) is possible is it possible to...
31
by: darwinist | last post by:
*With manual. http://darwinist.googlepages.com/htmldesktop.html Please criticise or contribute.
2
by: Hanika | last post by:
Going on 3 days and I am wodnering if I am just not looking in the right place. If anyone nows how to do this please please help me. I am developing a Windows form application using VB.NET 2005....
7
by: Peter | last post by:
ASP.NET 2.0 I am trying to open a Word document and Excel document from a dialog web page, what's the best way to do that? I have tried the following: Response.Clear();...
23
by: andyoye | last post by:
How can I launch Outlook on users machines when they click a button on a web form (InfoPath)? Thanks
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.