Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook Logon/Logoff

Status
Not open for further replies.

kindred

Programmer
Feb 28, 2001
50
US
Hello Everyone,

I've been working on trying to access a particular mailbox from within outlook via vfp.

I've managed to figure out how to get into the mailbox and everything through the logon method of the namespace object and get access to the account.

Here's my problem though. I can get it to work successfully by forcing Outlook to quit and reopen and then getting it to logon with the correct user, but this takes up to a minute or more to do. I'd like a way to logon as another user without having to quit outlook.

Any ideas would be greatly appreciated.


Thanks,
Stephen
 
I dont have multiple profiles configured, so I cant test this prior to posting. But are you saying you've tried:

oNameSpace.Logon("My First Profile","My First Password")
*do whatever
oNameSpace.Logoff
oNameSpace.Logon("My Other Profile","My Other Password")
*do whatever

and it didnt work?
Jon Hawkins
 
jon,

Thats right, this did not work, i had to quit outlook and reopen it to activate the other Profile.

Stephen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top