How to retrieve the email.Sender.Address from Outlook?

I am trying to retrieve the sender for my outlook emails and while I can successfully get the mail.Subject or mail.Body I am getting an Object reference not set to an instance of an object errror when trying mail.Sender.Address or mail.From.Address

I guess they are not available but why not or how can I know what is available?

What is the datatye of mail variable? It should be a list of

Also before printing address make sure you have some mail count while you are looping in for each


It is, check this out:

And if it wasn’t, I should have not been able to retrieve the mail.Subject, but I am.

Also, here is the counter:

Here is a detailed article on that :slight_smile: