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!

Cannot access current Outlook session from IE

Status
Not open for further replies.

andyhaywood

Programmer
Jan 12, 2004
4
GB
I have a problem where I can't logon to the users current Outlook session through Internet Explorer 6. I've got the following test script:

email = new ActiveXObject( "MAPI.SESSION" );
email.Logon( "", "", false, false );
alert (email.CurrentUser);


I have tried running the same code (but VBScript) outside of IE and it works fine but when run from a browser it fails. No error is generated but the CurrentUser is blank and you then get errors if you try to do anything else (such as attempt to access the Inbox). Does anyone know of any security settings in IE (or outlook?) that will deny access to the current email session.

Any help would be much appreciated!!

Thanks.
 
There are many security restrictions within IE to prevent anyone with a website from accessing a user's e-mail client. If you need to to this, try adding the site/page that contains this script to IE's 'trusted sites zone'
 
Thanks Smah,

I've already added it to trusted sites and enabled all of the zone properties (e.g. Allow ActiveX) so I don't think it's that that's causing the problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top