| Next: I want to protect ms query written in excel to vi.. |
| Author |
Message |
Trefor External

Since: Sep 07, 2005 Posts: 26
|
Posted: Sat Sep 05, 2009 3:37 am Post subject: read receipts while processing emails Archived from groups: microsoft>public>outlook>program_vba (more info?) |
|
|
I am saving emails to an HTML file and then moving the file to another folder.
I am guessing at this point in my code (because I did not manage to see
which step):
olMail.UnRead = False
on one of the messages the code stopped because there was a prompt to send a
read receipt. How can I automatically send the read receipt or bypass the
message?
I know there is a global option to automatically send read receipts, I am
looking to see how I might be able to do this programmatically on each
message.
--
Trefor |
|
| Back to top |
|
 |
Michael Bauer [MVP - Outl External

Since: Aug 04, 2006 Posts: 647
|
Posted: Sat Sep 05, 2009 4:10 pm Post subject: Re: read receipts while processing emails [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
It might be possible to bypass it by setting the ReadReceiptRequested
property of the MailItem to False.
Changing the global option doesn't work as that setting is stored in the
registry, and Outlook reads those settings only once at startup.
--
Best regards
Michael Bauer - MVP Outlook
: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: <http://www.vboffice.net/product.html?pub=6&lang=en>
Am Sat, 5 Sep 2009 03:37:02 -0700 schrieb Trefor:
> I am saving emails to an HTML file and then moving the file to another
folder.
>
> I am guessing at this point in my code (because I did not manage to see
> which step):
>
> olMail.UnRead = False
>
> on one of the messages the code stopped because there was a prompt to send
a
> read receipt. How can I automatically send the read receipt or bypass the
> message?
>
> I know there is a global option to automatically send read receipts, I am
> looking to see how I might be able to do this programmatically on each
> message. |
|
| Back to top |
|
 |
Trefor External

Since: Sep 07, 2005 Posts: 26
|
Posted: Sat Sep 05, 2009 8:24 pm Post subject: Re: read receipts while processing emails [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
Michael,
Many thanks for you responce.
This is not make any difference:
olMail.ReadReceiptRequested = False
olMail.UnRead = False <---- still get a message requiring user
invention
I have just answered Yes and ticked the box to all take this answer
everytime and that works fine, of course this would need to be set at least
once on every machine this code is run on and if anyone resets it I and back
to where I started.
--
Trefor
"Michael Bauer [MVP - Outlook]" wrote:
>
>
> It might be possible to bypass it by setting the ReadReceiptRequested
> property of the MailItem to False.
>
> Changing the global option doesn't work as that setting is stored in the
> registry, and Outlook reads those settings only once at startup.
>
> --
> Best regards
> Michael Bauer - MVP Outlook
>
> : Outlook Categories? Category Manager Is Your Tool
> : VBOffice Reporter for Data Analysis & Reporting
> : <http://www.vboffice.net/product.html?pub=6&lang=en>
>
>
> Am Sat, 5 Sep 2009 03:37:02 -0700 schrieb Trefor:
>
> > I am saving emails to an HTML file and then moving the file to another
> folder.
> >
> > I am guessing at this point in my code (because I did not manage to see
> > which step):
> >
> > olMail.UnRead = False
> >
> > on one of the messages the code stopped because there was a prompt to send
> a
> > read receipt. How can I automatically send the read receipt or bypass the
> > message?
> >
> > I know there is a global option to automatically send read receipts, I am
> > looking to see how I might be able to do this programmatically on each
> > message.
> |
|
| Back to top |
|
 |
Michael Bauer [MVP - Outl External

Since: Aug 04, 2006 Posts: 647
|
Posted: Mon Sep 07, 2009 5:10 am Post subject: Re: read receipts while processing emails [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
What happens is you save the item after setting
olMail.ReadReceiptRequested = False?
--
Best regards
Michael Bauer - MVP Outlook
: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: <http://www.vboffice.net/product.html?pub=6&lang=en>
Am Sat, 5 Sep 2009 20:24:01 -0700 schrieb Trefor:
> Michael,
>
> Many thanks for you responce.
>
> This is not make any difference:
>
> olMail.ReadReceiptRequested = False
> olMail.UnRead = False <---- still get a message requiring user
> invention
>
> I have just answered Yes and ticked the box to all take this answer
> everytime and that works fine, of course this would need to be set at
least
> once on every machine this code is run on and if anyone resets it I and
back
> to where I started. |
|
| Back to top |
|
 |
Trefor External

Since: Sep 07, 2005 Posts: 26
|
Posted: Mon Sep 07, 2009 5:28 pm Post subject: Re: read receipts while processing emails [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
Michael,
I will have to have another play and see. For now I have just said "yes" to
all in the global setting.
Thanks for your help.
--
Trefor
"Michael Bauer [MVP - Outlook]" wrote:
>
>
> What happens is you save the item after setting
> olMail.ReadReceiptRequested = False?
>
> --
> Best regards
> Michael Bauer - MVP Outlook
>
> : Outlook Categories? Category Manager Is Your Tool
> : VBOffice Reporter for Data Analysis & Reporting
> : <http://www.vboffice.net/product.html?pub=6&lang=en>
>
>
> Am Sat, 5 Sep 2009 20:24:01 -0700 schrieb Trefor:
>
> > Michael,
> >
> > Many thanks for you responce.
> >
> > This is not make any difference:
> >
> > olMail.ReadReceiptRequested = False
> > olMail.UnRead = False <---- still get a message requiring user
> > invention
> >
> > I have just answered Yes and ticked the box to all take this answer
> > everytime and that works fine, of course this would need to be set at
> least
> > once on every machine this code is run on and if anyone resets it I and
> back
> > to where I started.
> |
|
| Back to top |
|
 |
Dmitry Streblechenko External

Since: Nov 23, 2003 Posts: 1401
|
Posted: Tue Sep 08, 2009 4:10 pm Post subject: Re: read receipts while processing emails [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
On the MAPI level (C++ or Delphi), you would need to call
IMessage.SetReadFlag() passing the SUPPRESS_RECEIPT flag.
Outlook Object Model won't let you do that, <plug> Redemption can do that -
use RDOMail.MarkRead method - see
http://www.dimastr.com/redemption/rdo/rdomail.htm </plug>
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Michael Bauer [MVP - Outlook]" <mb.TakeThisOut@mvps.org> wrote in message
news:2xsf1xz12ccl$.31kqjc8zxrpo$.dlg@40tude.net...
>
>
> It might be possible to bypass it by setting the ReadReceiptRequested
> property of the MailItem to False.
>
> Changing the global option doesn't work as that setting is stored in the
> registry, and Outlook reads those settings only once at startup.
>
> --
> Best regards
> Michael Bauer - MVP Outlook
>
> : Outlook Categories? Category Manager Is Your Tool
> : VBOffice Reporter for Data Analysis & Reporting
> : <http://www.vboffice.net/product.html?pub=6&lang=en>
>
>
> Am Sat, 5 Sep 2009 03:37:02 -0700 schrieb Trefor:
>
>> I am saving emails to an HTML file and then moving the file to another
> folder.
>>
>> I am guessing at this point in my code (because I did not manage to see
>> which step):
>>
>> olMail.UnRead = False
>>
>> on one of the messages the code stopped because there was a prompt to
>> send
> a
>> read receipt. How can I automatically send the read receipt or bypass the
>> message?
>>
>> I know there is a global option to automatically send read receipts, I am
>> looking to see how I might be able to do this programmatically on each
>> message. |
|
| Back to top |
|
 |
|