Outlook 2007 VSTO Add-in.
The code (below) works fine... and the items do send, but they appear in my Outbox forever. Can anyone offer help in getting the notes to send and to not have them sit in the Outbox Thanks!
Here is the code:
Private Sub Application_ItemSend(ByVal Item As Object, ByRef Cancel As Boolean) Handles Application.ItemSend
If TypeOf (Item) Is MeetingItem Then
SyncMe(Item)End If
End Sub
Private Sub SyncMe(ByVal Item As Object)
Dim r As Recipient
Dim AmIThere As Boolean = FalseFor Each r In Item.recipients
If LCase(r.Address) = "MyOtherEmail@Someplace.com" Then
AmIThere = True
Exit For
End If
NextIf AmIThere = False Then
Item.recipients.add("MyOtherEmail@Someplace.com")
End IfEnd Sub