Question Locked

A message after "myOlApp.GetNamespace("MAPI").CurrentUser"

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Dear all
I'm using the code
myOlApp.GetNamespace("MAPI").CurrentUser
to get the name of an e-mail account name
but a worming message appear said "A Program trying to access e-mail information ........."
does any one have an idea to not let this message appear ???????????????? please SOS

2 replies

by wayne m.

It sounds like you are using Microsoft's Simple MAPI. These pop ups were added as a security patch a while ago (see
http://peach.ease.lsoft.com/scripts/wa.exe?A2=ind0005&L=mapi-l&D=0&T=0&P=12364 )

The solution is to rewrite into Extended MAPI or CDO. I haven't done anything with address books, but you can probably turn up some stuff with a google search on Extended MAPI, also do a search at the MSDN site ( http://msdn2.microsoft.com/en-us/default.aspx ) and the MAPI-L mailing list site from the first link.

This discussion is closed to new replies.