So I've been playing around and an email that contains no Body text or Subject text doesn't appear to show as an IPM.Note class of message
I have no idea why, and no idea how to fix it or get around it, If I remove the email in question, no exception is thrown and it loops through all the emails...
Thank you John,
I have implemented your suggestions but It's still throwing the exception when it reaches the following point:
If otkMailItems.Item(iCntr).MessageClass = otkMailItem Then
It throws the exception as soon as it reaches the blank email and does not go past this statement.
Good afternoon,
I am struggling with the following piece of code.
When it reaches an email with a blank Subject or Body it throws an exception: "Object reference not set to an instance of an object"
I am really struggling with this, I have been googling all day and I'm at a bit of a dead end...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.