How to extract the sender address while retrieving the files from another folder

Hi All,

Am saving all my mail attcahments in one folder and when we are calling files from the directory then I have to extract the sender address and body of the email from the email.

Can you please help

Thank you

You can get those details from the mail message object.

mailMessageObject.Body to get the body of the mail message
mailMessageObject.Sender to get the sender of the mail message

For more supporting properties and methods of mail message object, please have a look -

Regards,
Karthik Byggari