First, the download you used may not work for you in all environments. Main reason, it is not .Net. It is a COM object. That means it is not managed code. To use this you may need to register dlls on the server. This won't work for most hosts as they don't
generally let you register non-standard dlls. You really need to find a .Net solution, especially if you haven't dealt with COM interop before as that adds an entire new level of complexity.
I found an open source .Net Mapi project at:
http://www.openmapi.org/nmapi There is a good chance that this may work for you.
Don't forget to mark useful responses as Answer if they helped you towards a solution.
GoChinaGo
Member
46 Points
75 Posts
HELP: How to use Mircosoft CDO 1.21 Library in C# 4
Sep 26, 2011 04:18 PM|LINK
my goal is to read my emails via MAPI from exchange server(i use POP3 before, but now i need to update to MAPI), can somebody tell me how....
I was able to add the reference successfully(http://www.microsoft.com/download/en/details.aspx?id=1004), but i am not sure how to use it as the MAPI interface is not that familiar to me
it is like
MAPI a = new MAPI(IntPtr handle, string[] files, string mailSubject, string mailBody, string recipentName, string recipientAddress);
i don't know how to initialize this thing
thanks!!!!!!
Mamba Dai - ...
All-Star
23531 Points
2683 Posts
Microsoft
Re: HELP: How to use Mircosoft CDO 1.21 Library in C# 4
Sep 28, 2011 08:30 AM|LINK
Hi,
Please check this article which describes some of the common programming tasks using CDO:
http://msdn.microsoft.com/en-us/library/ms528097(v=EXCHG.10).aspx
Feedback to us
Develop and promote your apps in Windows Store
GoChinaGo
Member
46 Points
75 Posts
Re: HELP: How to use Mircosoft CDO 1.21 Library in C# 4
Sep 28, 2011 03:44 PM|LINK
thanks for your replying, but this is not helping me at all...
Mamba Dai - ...
All-Star
23531 Points
2683 Posts
Microsoft
Re: HELP: How to use Mircosoft CDO 1.21 Library in C# 4
Sep 29, 2011 03:21 AM|LINK
Hi,
The reply I provide show the multiple task about CDO.121, please check it carefully.
And I have found some other stuff:
http://www.codeproject.com/KB/cs/gmcdoexmail.aspx
http://mfcmapi.codeplex.com/
http://forums.asp.net/t/1002362.aspx/1?VS2005+and+CDO+1+21+Programming+Problem
Feedback to us
Develop and promote your apps in Windows Store
GoChinaGo
Member
46 Points
75 Posts
Re: HELP: How to use Mircosoft CDO 1.21 Library in C# 4
Sep 30, 2011 04:50 PM|LINK
Who tried the dll downloaded from (http://www.microsoft.com/download/en/details.aspx?id=1004).....
i need help on that.........
Exspecially how to intionalize this to get things start....
MAPI a = new MAPI(IntPtr handle, string[] files, string mailSubject, string mailBody, string recipentName, string recipientAddress);
GoChinaGo
Member
46 Points
75 Posts
Re: HELP: How to use Mircosoft CDO 1.21 Library in C# 4
Oct 03, 2011 08:30 PM|LINK
hellp
markfitzme
Star
14471 Points
2236 Posts
Re: HELP: How to use Mircosoft CDO 1.21 Library in C# 4
Oct 03, 2011 08:47 PM|LINK
First, the download you used may not work for you in all environments. Main reason, it is not .Net. It is a COM object. That means it is not managed code. To use this you may need to register dlls on the server. This won't work for most hosts as they don't generally let you register non-standard dlls. You really need to find a .Net solution, especially if you haven't dealt with COM interop before as that adds an entire new level of complexity.
I found an open source .Net Mapi project at: http://www.openmapi.org/nmapi There is a good chance that this may work for you.