Hi @Peter_1985 , Welcome to Microsoft Q&A,
Updated:
Read https://learn.microsoft.com/en-us/dotnet/api/system.net.mail.smtpclient?view=net-9.0 to find out that (SMTP) uses the Simple Mail Transfer Protocol to send emails. It is not used to receive emails.
Refer to https://learn.microsoft.com/en-us/answers/questions/1791528/reading-emails-from-outlook-in-c .
You can use MailKit to connect to an IMAP server.
Best Regards,
Jiale
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.