The basic outline of your code looks ok to me, but I notice two things. One is that you're using the wrong property name - SenderName is the correct property if you want the name of the sender. The other is that you need to make sure you click Yes on the security warning popup that will appear in Outlook when your code tries to access that information.