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

Selective read receipt Part 2



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old May 26th 06, 10:28 PM posted to microsoft.public.outlook.program_vba
prideoflions
external usenet poster
 
Posts: 6
Default Selective read receipt Part 2

I've reviewed that thread a number of times, but it's for O2K not 2003. Also
it doesn't run from the "run a script" option in a filter so alot of it is
really different and extemly hard for me to extricate the portions that apply
to what I need. I'm pretty novice at this and the whole CDO thing is a little
over my head. The last comment by Ken slovak seems to have merit, but as
there is no revised code, I'm not sure how to encorporate it.

Thanks

"Eric Legault [MVP - Outlook]" wrote:

There's a previous discussion in this forum that could be of great help:

http://groups.google.com/group/micro...7241006c79e0cf

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"prideoflions" wrote:

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
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
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


All times are GMT +1. The time now is 03:56 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.