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

x
?
Solved

Email from Windows Application using default email client

Posted on 2004-04-01
5
Medium Priority
?
166 Views
Last Modified: 2010-04-15
I have a Windows application which can open saved files. This is an MDI application and all saved file are opened as child windows.

The application is required to have the ability to email the opened files using the default email client. Clicking on "Email This File" should launch the email client and auto attach the file.

Any idea how to accomplish this....

0
Comment
Question by:rpatil
[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
5 Comments
 
LVL 5

Expert Comment

by:AdrianJMartin
ID: 10732939
If your clients are 2000 or above you can use:-

the system.web.mail namespace

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebmailmailmessageclasstopic.asp


has examples;

Otherwise you can use mapi via com interop.
0
 

Author Comment

by:rpatil
ID: 10732957
This won't help...
1. since the application is a Windows application and not web app.
2. i need to launch default email client (like outlook, outlook express or any such client) with the file auto attached. Just like how Microsoft word does.
0
 
LVL 5

Accepted Solution

by:
AdrianJMartin earned 375 total points
ID: 10733006

system.web.mail is available for use anywhere not just within web apps, the example is in ASP.NET but it can be used within WinForms Just as easily.

otherwise:-

http://www.microeye.com/resources/res_tech_vsnet.htm

very good collection of resources
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

715 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