Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Possible to launch outlook and add an attachment?

Posted on 2006-06-09
Last Modified: 2008-03-17

We are supposed to come up with a way to launch outlook and add an attachment progamatically. We don't have to worry about any other mail clients at this time. We don't want to use SMTPMail. Is it possible to add an attachment? I know how to use their default mail client and create a mail using mailto (like below) but as far as I know, for security reasons, mailto will not allow attachments.

using System.Text;
using System.Diagnostics;


string toEmail = "testr@test.com";
string subject = "This is a test Subject";
string body = "This is a test email message";
string message = string.Format("mailto:{0}?subject={1}&body={2}",     toEmail, subject, body);


But I don't think i'll get anywhere with this. Any ideas?

Question by:PoeticAudio

Accepted Solution

bdsmithback earned 500 total points
ID: 16872850
You can use the Outlook Object Library


Author Comment

ID: 16885334

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question