How to slove this issue for each object reference not set to an instance of an object

hey

as you can see, you variable MailMessages is empty, it means that you have a failure in your activity to get the messages

Also please dont upload screeshots with your mails and passwords. we can see it

Regards!

@Babu_JJ Mail Messages variable is empty. Make sure it has data then the issue will resolve. To check the variable has data or not keep message box before For each and use the below exp

MailMessages.Count

If the value is 0 that means this variable doesn’t contains any value