Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Email from Windows Application using default email client

Posted on 2004-04-01
5
Medium Priority
?
169 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
  • 2
3 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
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…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

877 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