![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |