How to avoid security alerts in Outlook Add in

A

Abhi.

Hello,
In my VS 2005 C#Outlook Add in when in Item_Add event I access Item
information of that Item in order to save this information I am getting,

" A program is trying to access e-mail addressess you have stored in
Outlook.Do you want to allow this?
If this is unexpected, it may be virus and you should choose "No" "

And there is options of 1,5,10,15 mins so how can I disable or hide this?
 
A

Abhi.

Thanks for your reply I have done..
private void _items_ItemAdd(object Item)
{
try
{
Microsoft.Office.Interop.Outlook._AppointmentItem
objAppointmentItem = (Microsoft.Office.Interop.Outlook._AppointmentItem)Item;

here I access,
- objAppointmentItem.Body
- objAppointmentItem.Subject etc

}
}
so here when I get in to objAppointmentItem I get security alert. Even I
tried taking object at class level.
What should I do?
Thanks.
 
S

Sue Mosher [MVP-Outlook]

You should look at how the _items collection is derived. And its parent
Folder or MAPIFolder object, and any other parent objects up to the original
Outlook.Application object, which must be derived from the add-in archecture,
as indicated earlier.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top