A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Avoiding security pop up on MeetingItem.Respond/Send



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 8th 06, 07:19 PM posted to microsoft.public.outlook.program_vba
Nebuchenazarr
external usenet poster
 
Posts: 1
Default Avoiding security pop up on MeetingItem.Respond/Send

Using Outlook 2000, I have a custom rule that accepts meeting requests
automatically when a new meeting item is received. Unfortunatly there are two
security warning that pop up when I use the respond and send method. Here is
my code :

MsgBox "variable creation"
Dim strId As String
Dim oNS As Outlook.NameSpace
Dim oMeeting As Outlook.MeetingItem
Dim oAppt As Outlook.AppointmentItem
Dim oMtg As Outlook.MeetingItem
Dim oAtg As Outlook.AppointmentItem
MsgBox "getting meeting id"
strId = Item.EntryID
Set oNS = Application.GetNamespace("MAPI")
Set oMeeting = oNS.GetItemFromID(strId)
MsgBox "getting associated appointment"
Set oAppt = oMeeting.GetAssociatedAppointment(True)
MsgBox "getting appointment id"
strId = oAppt.EntryID
Set oAtg = oNS.GetItemFromID(strId)
MsgBox "setting respond"
Set oMtg = oAtg.Respond(olMeetingAccepted, True)
MsgBox "sending"
oMtg.Send
MsgBox "clearing variables"
Set oMeeting = Nothing
Set oAppt = Nothing
Set oMtg = Nothing
Set oAtg = Nothing
Set oNS = Nothing

As you can see I tried getting around the object model guard by using the
entry id but it does'nt seem to work for a meeting item fetched from
GetAppointmentItem. I have looked at http://www.outlookcode.com/d/sec.htm and
the discussion group and did'nt come up with any solution. For some reason it
works fine on Outlook 2003, but we need to make it work on 2000.

Thanks
  #2  
Old November 9th 06, 01:50 AM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Avoiding security pop up on MeetingItem.Respond/Send

As you can see I tried getting around the object model guard by using the
entry id but it does'nt seem to work for a meeting item fetched from
GetAppointmentItem.


It doesn't apply at all to Outlook 2000. You'll need to use one of the other approaches detailed on the page you cited.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Nebuchenazarr" wrote in message ...
Using Outlook 2000, I have a custom rule that accepts meeting requests
automatically when a new meeting item is received. Unfortunatly there are two
security warning that pop up when I use the respond and send method. Here is
my code :

MsgBox "variable creation"
Dim strId As String
Dim oNS As Outlook.NameSpace
Dim oMeeting As Outlook.MeetingItem
Dim oAppt As Outlook.AppointmentItem
Dim oMtg As Outlook.MeetingItem
Dim oAtg As Outlook.AppointmentItem
MsgBox "getting meeting id"
strId = Item.EntryID
Set oNS = Application.GetNamespace("MAPI")
Set oMeeting = oNS.GetItemFromID(strId)
MsgBox "getting associated appointment"
Set oAppt = oMeeting.GetAssociatedAppointment(True)
MsgBox "getting appointment id"
strId = oAppt.EntryID
Set oAtg = oNS.GetItemFromID(strId)
MsgBox "setting respond"
Set oMtg = oAtg.Respond(olMeetingAccepted, True)
MsgBox "sending"
oMtg.Send
MsgBox "clearing variables"
Set oMeeting = Nothing
Set oAppt = Nothing
Set oMtg = Nothing
Set oAtg = Nothing
Set oNS = Nothing

As you can see I tried getting around the object model guard by using the
entry id but it does'nt seem to work for a meeting item fetched from
GetAppointmentItem. I have looked at http://www.outlookcode.com/d/sec.htm and
the discussion group and did'nt come up with any solution. For some reason it
works fine on Outlook 2003, but we need to make it work on 2000.

Thanks

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2003 security pop up on automated emails Eskimo Outlook and VBA 3 July 31st 06 07:30 PM
question about avoiding virus in OE input mail Yolanda Martin Outlook Express 5 June 7th 06 08:52 PM
Avoiding automatic reformating of plain text mails xirx Outlook - General Queries 2 March 17th 06 01:04 PM
Blocking Security pop ups sweens319 Outlook and VBA 4 January 11th 06 07:08 PM
Security Pop ups Milly Staples [MVP - Outlook] Outlook - General Queries 0 January 7th 06 07:07 PM


All times are GMT +1. The time now is 09:01 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.