Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Authentication Exception & Connection Reset (office 365 email)

SA-30214

Summary



User is connecting to Office 365 account and see below exceptions intermittently.

User is able to send the emails from the same configuration however, if the batch job is supposed to send 100 emails, one or two are not sent in between due to authentication exception.


Error Messages

javax.mail.MessagingException: Connection reset;
javax.mail.AuthenticationFailedException

Steps to Reproduce

  1. Configure Email account with office 365 email id. Enable SMTP and IMAP.
  2. Try sending email (larger number in single batch) with this account and we can get Authentication exception in between.
  3. Observe that Connection Reset can occur anytime.


Root Cause



The problem is caused by an imposed limitation of the IMAP and SMTP service as provided by Microsoft Office 365.

Office 365 is meant to support human clients, not an automated email sender as one coming with PRPC's send email feature.

So it allows only about 30 emails per minute and not more than 10000 per day for a single account.

This would be sufficient, for example, some administrative status notifications, but not for sending out invoices to clients of a Telco or a utility company.  

Resolution



Select another SMTP provider.

Published November 17, 2016 - Updated December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us