Tuesday, 15 July 2014

c# - Access MS Outlook from Windows service -



c# - Access MS Outlook from Windows service -

i seek access ms outlook service way:

oapp = new outlook.application(); ons = (outlook._namespace)oapp.getnamespace("mapi"); ons.logon(missing.value, missing.value, false, true); ofolder = ons.getdefaultfolder(outlook.oldefaultfolders.olfolderinbox);

if run code windows application working properly. if seek run in service error

server not available

at line

ons.logon(missing.value, missing.value, false, true);

what right way access ms outlook folder service?

outlook, other office app, cannot used service. options are

in case of exchange mailbox, can utilize ews connect particular mailbox

extended mapi (c++ or delphi only) - can dynamically create profile, add together , configure exchange mapi service (msems).

redemption (any language) - rdo family of objects can used in service. can utilize rdosession.logonexchangemailbox / logonhostedexchangemailbox / logonpststore create redemption create dynamic profile , log it. can utilize rdosession.logon , specify profile name, service must run local user has profile instead of service account.

c# service outlook outlook-2010

No comments:

Post a Comment