Olaf,
In my Outlook I have a mixture of POP3 as well as MAPI Email accounts. I have about 15 accounts. Does anyone have Outlook these days with just one account? Using your 1st offering I cannot access the body of the Email, because it points me to the "Sent Box" and the default setting "#Define olFolderInBox 6" is wrong. That setting value 6 is for olFolderJournal not "olFolderInbox". Anyway I did figure out how to locate the Account I want to deal with "olNameSpace.Folders(14).Name" I have combed the hierarchy and discovered many things. One discovery is that each account defaults to "Sent To" rather than "InBox" and that is not affected by "olFolderInbox", though it might seem so. What would be nice would be a practical example of using this exceedingly general solution. And MS Developer Network is no help. I may as well start from scratch and build my own. Their jargon is not designed to help.
On your second offering, how could "oMapiMessages.Fetch()" be called at this stage when nothing was defined. The user Id, password, account name need to be entered. Clearly some abstruse setting somewhere down the two object's hierarchy will allow me to set it. But which, is the question. Again, MS Developer Network is nearly useless. So, while I appreciate the challenge to do my own digging, this has proven to be another MS round about path to the superlative abstruseness. (root word abstruse)
So, once again, to hell with MS and their retarded MAPI. Do you have any code using POP3, WITHOUT OUTLOOK, rather than MAPI, Olaf...?
Dennis Kean
Simplicity is the extreme degree of sophistication.
Leonardo da Vinci