Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Possible to launch outlook and add an attachment?

Posted on 2006-06-09
2
Medium Priority
?
291 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

704 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