We help IT Professionals succeed at work.
Get Started

How can I open a new email window with attachment in VB .net

Last Modified: 2012-05-09
My application downloads a file via webservices and saves it to a temporary location.

How can I now attach that file to a new email so that the user can enter an email address, message body, subject etc? The email client could be Outlook (2000 / 2003 / 2007 / 2010) or Outlook Express.

I have tried using MAPI without success - the email client does not open or when sending brings up a warning (in Outlook 2007 at least). I have also tried Mailto: however the attachment is not added.

The only way I can think of is to replicate the Mail Recipient in the Send To folder (or any other file with a MAPIMAIL extension) - how can I simulate the file drop onto this Icon in VB.net? (Using the clipboard is one way, but I need to ensure the existing clipboard contents are not wiped!)
Watch Question
Full stack Software Engineer
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE