Click here to Skip to main content
15,887,477 members
Home / Discussions / C#
   

C#

 
GeneralRe: Closing an open Task Manager window Pin
Heath Stewart14-May-04 2:03
protectorHeath Stewart14-May-04 2:03 
GeneralRe: Closing an open Task Manager window Pin
ian mariano14-May-04 3:36
ian mariano14-May-04 3:36 
GeneralUnRegister a Service Process Pin
Nagendra Kamath K8-May-04 4:58
Nagendra Kamath K8-May-04 4:58 
GeneralRe: UnRegister a Service Process Pin
ian mariano13-May-04 18:57
ian mariano13-May-04 18:57 
GeneralUsing outlook to send messages. Pin
mpalle8-May-04 4:35
mpalle8-May-04 4:35 
GeneralRe: Using outlook to send messages. Pin
Heath Stewart8-May-04 20:01
protectorHeath Stewart8-May-04 20:01 
GeneralRe: Using outlook to send messages. Pin
mpalle8-May-04 22:24
mpalle8-May-04 22:24 
GeneralRe: Using outlook to send messages. Pin
Heath Stewart9-May-04 2:23
protectorHeath Stewart9-May-04 2:23 
If you're going to try to just put an email into a folder, you might as well use Outlook to send as well.

My suggestion is to just make that a system requirement: Outlook 2002 or above. Or, as I said, search this site for more information on MAPI. You can google, too.

The thing is that MAPI is pretty basic functionality and Microsoft has limited what MAPI can do (like enumerate the address book). They created Extended MAPI (EMAPI) to replace that functionality, but EMAPI does not expose any automation interfaces so that only early-binding languages can use it (C/C++ mainly) - so that script can't access it (and a COM interop library can't be created from it). You can encapsulate EMAPI using .NET, however, by P/Invoking the require methods and creating the IUnknown interfaces yourself. Several people have already done this, so you can use their implementation.

You could also check out Simple MAPI.NET[^] here on CodeProject. This implementation uses MAPI so there will be a security warning for Outlook XP and 2003 that tells the user a program is trying to access certain features, which they can allow or deny.

Encapsulating EMAPI is your best bet, and should work just fine for Outlook 2000 and newer. Anything older would probably be rare, running on a machine that can't run the .NET Framework anyway (i.e., Windows 95), or become too big of a burden and too costly to develop.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Using outlook to send messages. Pin
mpalle9-May-04 2:39
mpalle9-May-04 2:39 
GeneralGet name of variable Pin
Stefan Troschuetz8-May-04 4:06
Stefan Troschuetz8-May-04 4:06 
GeneralRe: Get name of variable Pin
Hesham Amin8-May-04 4:13
Hesham Amin8-May-04 4:13 
GeneralRe: Get name of variable Pin
Stefan Troschuetz8-May-04 4:22
Stefan Troschuetz8-May-04 4:22 
GeneralRe: Get name of variable Pin
kayhustle8-May-04 16:03
kayhustle8-May-04 16:03 
GeneralRe: Get name of variable Pin
Stefan Troschuetz9-May-04 0:51
Stefan Troschuetz9-May-04 0:51 
GeneralRe: Get name of variable Pin
Heath Stewart8-May-04 19:29
protectorHeath Stewart8-May-04 19:29 
GeneralRe: Get name of variable Pin
Stefan Troschuetz9-May-04 0:42
Stefan Troschuetz9-May-04 0:42 
GeneralRe: Get name of variable Pin
Heath Stewart9-May-04 2:51
protectorHeath Stewart9-May-04 2:51 
Generaladd a property Pin
cristina_tudor8-May-04 2:48
cristina_tudor8-May-04 2:48 
GeneralRe: add a property Pin
Dave Kreskowiak8-May-04 3:17
mveDave Kreskowiak8-May-04 3:17 
GeneralC# Questions relating to TextBox Pin
Member 6910898-May-04 0:33
Member 6910898-May-04 0:33 
GeneralRe: C# Questions relating to TextBox Pin
Hesham Amin8-May-04 1:19
Hesham Amin8-May-04 1:19 
GeneralRe: C# Questions relating to TextBox Pin
surgeproof8-May-04 4:21
surgeproof8-May-04 4:21 
GeneralRe: C# Questions relating to TextBox Pin
kayhustle8-May-04 5:19
kayhustle8-May-04 5:19 
GeneralRe: C# Questions relating to TextBox Pin
Heath Stewart8-May-04 19:56
protectorHeath Stewart8-May-04 19:56 
Questionhow can i got the version infomation about the sqlsever? Pin
lowiq7-May-04 20:04
lowiq7-May-04 20:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.