Skip to main content

Unable to loop through O365 mailbox


Forum|alt.badge.img+17

I am working with a customer attempting to connect to an O365 mailbox to retrieve emails. We have tried the documented IMAP connection information (outlook.office365.com, 993, SSL box checked) but keep getting invalid username and password. We have confirmed credentials are correct.

When we switch to POP3 (995, SSL still checked) the connection goes through. However, When I then try to loop through all emails in the Inbox, I am getting an error that the “connection details are incorrect”. For the loop I am choosing all emails, output to dictionary, and just trying to capture emailSubject in a messagebox.

As a test, I created a brand new O365 account (outside the customer org), and am able to connect with IMAP just fine and cycle through the emails in that mailbox. Any thought on why the other account is not working?

 
Did this topic help answer your question?

0 replies

Be the first to reply!

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings