G
Guest
I have written some Visual Basic code to identify and delete junk mail that
gets by Outlook's spam filters. To do this, the procedure works with the
SenderName, Body and HTMLBody properties of the MailMessage item. The
procedure is associated with the New Mail event.
Whenever the code runs, I get an Outlook pop-up message window alerting me
that “A program is trying to access e-mail addresses you have stored in
Outlook. Do you want to allow this?†Code execution is suspended until I
respond to the pop-up. So any time my code runs when New Mail arrives, the
Message Box pops up and my code execution is suspended until I respond to the
message box giving permission to continue.
The pop-up appears when the lines of code are executed that reference the
SenderName, Body, and HTMLBody properties. The pop-up is not triggered by
accessing the Unread property. At no point in the code do I work with or
reference the ContactItem or AddressList objects
I have tried unsuccessfully to find something in Outlook that will allow the
code to run without triggering the pop-up. I have changed security settings,
I've gone through the on-line user manual, and I've tried to find an Outlook
application security property that I can disable as part of code execution.
So, does anybody know a way that I can either deactivate this feature or
enable Outlook to recognize that the procedure is being called by Outlook
itself and not by a rogue program?
gets by Outlook's spam filters. To do this, the procedure works with the
SenderName, Body and HTMLBody properties of the MailMessage item. The
procedure is associated with the New Mail event.
Whenever the code runs, I get an Outlook pop-up message window alerting me
that “A program is trying to access e-mail addresses you have stored in
Outlook. Do you want to allow this?†Code execution is suspended until I
respond to the pop-up. So any time my code runs when New Mail arrives, the
Message Box pops up and my code execution is suspended until I respond to the
message box giving permission to continue.
The pop-up appears when the lines of code are executed that reference the
SenderName, Body, and HTMLBody properties. The pop-up is not triggered by
accessing the Unread property. At no point in the code do I work with or
reference the ContactItem or AddressList objects
I have tried unsuccessfully to find something in Outlook that will allow the
code to run without triggering the pop-up. I have changed security settings,
I've gone through the on-line user manual, and I've tried to find an Outlook
application security property that I can disable as part of code execution.
So, does anybody know a way that I can either deactivate this feature or
enable Outlook to recognize that the procedure is being called by Outlook
itself and not by a rogue program?