This article describes common errors with SMTP for Office365.
To set up custom SMTP, please refer to this article.
Invalid login: 451 4.7.0 Temporary server error. Please try again later. PRX4
535 5.7.139 Authentication unsuccessful, the request did not meet the criteria to be authenticated successfully. Contact your administrator
Customers need to enable SMTP Authentication for an account that’s used for sending emails