I would like the code to scan through all mails in my Inbox folder (excluding subfolders) to look out for specific domains.

I don't need a folder to be created if destFolder does not exist but currently the code is not able to read all my emails in my Inbox except for one read email dated in 6 months ago.

i managed to get some referencing on the SMTP code from this link: https://stackoverflow.com/questions/...-sender-domain

and have posted a thread from this link: https://learn.microsoft.com/en-us/an...or-with-b.html but not able to get any solution