![]() |
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
|
|||
|
|||
![]()
Hello,
Background: This is a followup question to Selective Read Receipts VBA using run script rule. I wish to set my tracking option to always allow read receipts, but on every incoming message from someone not in my address book (set using filters) a script runs allowing me to chose whether to allow the receipt or not. Problem: I think there is something wrong in the approach I'm taking to remove the read receipt from selective addresses. The following code runs and I've stepped through it using break points and the display comes up, it moves into the vbno section with a No selection and it steps through the read.receipt = false portion, but the read receipt goes out as a positive when read anyway. For some reason the read receipt property either doesn't change, doesn't stay changed or something. Thanks! My 'working' code is as follows: Sub Test(MyMail As Outlook.MailItem) Dim strID As String Dim Display As String Dim Title As String Dim olNS As Outlook.NameSpace Dim Item As Outlook.MailItem Dim Response As VbMsgBoxResult Dim Style As VbMsgBoxStyle strID = MyMail.EntryID Set olNS = Application.GetNamespace("MAPI") Set Item = olNS.GetItemFromID(strID) Display = "Do you wish to allow a read receipt from " & Item.SenderEmailAddress & "?" Style = vbYesNo Title = "Read Receipt Prompt" ' Define title. If Item.ReadReceiptRequested = True Then Response = MsgBox(Display, Style, Title) If Response = vbNo Then Item.ReadReceiptRequested = False Item.Save End If End If Set Item = Nothing Set olNS = Nothing End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Selective Read Receipts VBA using run a script rule | prideoflions | Outlook and VBA | 5 | May 26th 06 03:31 PM |
verify that an email was read without using a receipt | RCNellis | Outlook - General Queries | 1 | May 12th 06 04:02 PM |
Read receipt Setting via Rule | John | Outlook - General Queries | 1 | May 11th 06 03:50 PM |
Read Receipt | jeffatsc | Outlook - Installation | 0 | March 28th 06 05:03 PM |
Sending a read receipt | Fishmanboy | Outlook - General Queries | 4 | March 13th 06 04:03 PM |