Exchange mails (sending + receiving) on not-logged-on account, VC++ 6.0
Posted on 2006-04-12
I need to log on to an Exchange server to check my Inbox, copy the content of the mails to a text file and move the mails into an archive folder. Also I must be able to send mails.
Big Problem: The exchange mail account belongs to another windows user account.
I am Administrator, have full rights and would (if needed) hardcode all login / password stuff for the mail account ("tsdp"). But I haven't managed yet, I guess i must first impersonate myself before I can operate. Or ? I have no exchange password, only the windows user account password, but did never manage to come into the mail account.
Do I have to add an additional mail profile in order that it works ?
I use Visual C++ 6.0 / Visual Basic 6.0, what technique would allow me the most technically-up-to-date stuff and flexibility ? (no, I mean not ".NET" and not web service stuff like ADO) CDO 1.2.1 ? Or some MAPI functions ? I need some code snippets that help me perform this task.