Solved

In  vba checking outlook mail items a  read   receipt  .SentOn property is invalid

Posted on 2015-02-12
5
279 Views
Last Modified: 2016-02-10
In  vba checking outlook mail items a  read   receipt  .SentOn property is invalid

How would you determine the date time from the properties ?

_Read: Subject:  R&M      INFORMATION ON XXXXXXX
__________________________________________________
Your message

    To:  xxxxxxxxxx
    Subject:  R&M      INFORMATION ON XXXXXXX
    Sent:  12/02/2015 1:06 PM

was read on 12/02/2015 5:49 PM.


Other emails such as replies the property senton is set.
0
Comment
Question by:leibhold
  • 3
  • 2
5 Comments
 
LVL 68

Accepted Solution

by:
Qlemo earned 500 total points
ID: 40606940
The receipt is a ReportItem, and no MailItem. See https://msdn.microsoft.com/en-us/library/office/ff865370(v=office.15).aspx for members.
As it seems the CreationTime is what you are looking for. If you also need the corresponding mail item, you will have to perform a search based on the ConversationID.
0
 

Author Comment

by:leibhold
ID: 40607092
Thank you  - explains the issue

I didn't realise that the folder could contain items other than mailitems  - I will check item type first then based on the type obtain the correct information.

Thank you
0
 

Author Closing Comment

by:leibhold
ID: 40607093
Clear and concise help - thanks
0
 
LVL 68

Expert Comment

by:Qlemo
ID: 40607404
Each folder in Outlook can contain different item types. The folder defines the default type only.
0
 

Author Comment

by:leibhold
ID: 40609184
Yes - my code looks into the mail folder for returned emails on a subject basis.
This goes into an access job database where the outgoing emails are created.
When a person replies, it looks at the subject, finds the order number and updates the job with the returned email.
It was starting to get confused when the READ: messages started turning up.

With the change, I can now separate to replies from the read receipts.

Thanks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now