Solved

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

Posted on 2015-02-12
5
321 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 69

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 69

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an Add-On procedure to be used in conjunction with the code provided in Reducing EE Email Clutter using Outlook (http://www.experts-exchange.com/Software/Office_Productivity/Groupware/Outlook/A_3146-Outlook-Processing-EE-emails-on-Receive.…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

749 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