Solved

Possible to launch outlook and add an attachment?

Posted on 2006-06-09
2
288 Views
Last Modified: 2008-03-17
hello,

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);

Process.Start(message);

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

Thanks!
0
Comment
Question by:PoeticAudio
[X]
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
2 Comments
 
LVL 2

Accepted Solution

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

http://support.microsoft.com/default.aspx?id=310263
0
 
LVL 6

Author Comment

by:PoeticAudio
ID: 16885334
Thanks!
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

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…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

729 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