How to extract senders email address | Outlook

Hi,
I need to extract senders email address in Outlook. Is there a way to extract senders email or id and store it into a variable?

hi @lasithdilshan20 ,

follow these steps for extracting senders email address:

  1. Get outlook mail messages

  2. Foreach item in mailMessages

         senderMail = item.To.Tostring
2 Likes