Damn beginners!...MAPI

  • Thread starter Thread starter Paul Brownjohn
  • Start date Start date
P

Paul Brownjohn

Hi

I have just started progrmming in C#...its going OK so far..only minor
problems.

I need to create and send an email from a C# prog. I use W2K, Outlook 2000/
IE/Outlook Express 6. There is an article on the MSDN site that suggests
that you need to download some special versions of Office files for VS.NET
to be able to call them from VS.NET. The files mentioned require WIN XP,
which I don't have.

Actually all I want to do is to make a MAPI call from within VS.NET...the
code needs to work with any MAPI compliant Email Client...any one know how
it's done if it can be done?
Thanks

Paul BJ
 
Paul,
Which version of the OS?

Have you considered the System.Web.Mail namespace?

The namespace requires Windows 2000, Windows XP Pro, and Windows Server
2003, as it requires the CDOSYS component to be installed via the OS.

Simple MAPI may be another option, however I have not worked out the
P/Invoke statements...

The following site provides a plethora of articles on using Outlook from
both C# & VB.NET:
http://www.microeye.com/resources/res_outlookvsnet.htm

Hope this helps
Jay
 
Win 2000 pro SP4
But the dev enivironment is VS 2002with .NET Framework Version 1.0

Should I upgrade to framework 1.1?

Cheers

Paul BJ
 
Thanks Guys

I got it working...I thought that all 'references' in the old VB sense had
got transformed into 'using' declares...not so it seems...I added the
required ref + the using declare and all now working and available

Cheers

Paul BJ
 
Back
Top