I need a library/API allowing me to connect to a SMTP/IMAP server with authentication using powershell. I need to adapt a powershell script that uses EWS to access an Exchange server. This Exchange Server will be shut down and we need to adapt that script for SMTP/IMAP. This script looks into a mailbox for inbox and sent email and search some mail from their subjects using the EWS objects.
Thanks guys, but i can't find what i need with the APIs you gave me. Closing the question.