J
Joseph Kormann
I'm building an application to retrieve emails. Which is better to use: CDO
or the Outlook library?
Thanks.
or the Outlook library?
Thanks.
Jay B. Harlow said:Joseph,
The 'best' list of resources that I am aware of for combining .NET & Outlook
(CDO) is:
http://www.microeye.com/resources/res_outlookvsnet.htm
What do you mean by 'Outlook Server'? Do you mean a local Exchange Server
verses a Foreign Exchange Server? I don't use Exchange Server, however to
the best of my knowledge Outlook can only connect to a single Exchange
server at a time.
Hope this helps
Jay
After you set the Unread to false, you need to save the item. Also I wouldAnd do you have any idea as to why when my application sets a an unread
message to 'unread = false', it sometimes doesn't get set in the Outlook
gui? It's like it get skipped. Very puzzling.
Let me reword the question: How many Exchange Servers are involved?I mean the remote MS Exchange server that my Outlook gets it's messages
from. Or is the only way through the SMTP object set? The only problem there
is I can't mark the message as read so I can get redundant messages.
I spend more time in .NET nowadays over programming Outlook, I try to answer(I noticed the MVP - Outlook and thought you could answer that one).
Jay B. Harlow said:Joseph,
After you set the Unread to false, you need to save the item. Also I would
do a System.Runtime.InteropServices.Marchal.ReleaseComObject as soon as I
was done with the com object, to ensure it gets released in a timely manner,
otherwise you are at the discretion of the GC.
Let me reword the question: How many Exchange Servers are involved?
Jay B. Harlow said:Joseph,
After you set the Unread to false, you need to save the item. Also I would
do a System.Runtime.InteropServices.Marchal.ReleaseComObject as soon as I
was done with the com object, to ensure it gets released in a timely manner,
otherwise you are at the discretion of the GC.
What do you mean "terminates early", do you mean you had an unhandledbut if the application terminates
early, Outlook still has that problem.
Not that I am aware of.Other than manually stopping the
Outlook background application, is there a way to clear those previous
registrations?
Jay B. Harlow said:Joseph,
What do you mean "terminates early", do you mean you had an unhandled
exception & exited?
Not that I am aware of.
Thanks.
Hope this helps
Jay
It won't either!It's a console application and I'm hitting the Close ("X") in the
upper-right corner of the console window. It's still exiting with an
error-code of 0, but it's not calling the destructors and dispose methods.