Send e-mail message with attachment with the default e-mail client?

R

Robbie De Sutter

Hello,

How do I open a new, empty e-mail message from the default e-mail client
whereby the sender is given and a file is attached?

Currently I use the command (vb.net):
---
System.Diagnostics.Process.Start("mailto:someone@somewhere&subject=the%
20subject")
---
to open an emtpy e-mail message form (the default e-mail editor of the
user will be started) with the given subject "the subject" (%20 = space
(this is URL encoded)) ready to send to "someone@somewhere".

But how can I add a file attachment?

Note: I am NOT looking for an SMTP engine. I am NOT looking to send e-
mails directly without user interaction (= click on send).
Also any sollution based on one specific e-mail client is NOT good. The
solution must work in any possible e-mail configuration.

tia,
Robbie
 
M

Michal Sampson [MSFT]

Hi Robbie

The mailto protocol only supports setting the subject and the body of the
mail message and does not allow attaching a file. This link should help you.

http://msdn.microsoft.com/library/default.asp?url=/workshop/networking/prede
fined/mailto.asp

--
Mike Sampson | VB .Net Deployment
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
--------------------
 

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