本文介绍了获取异常:javax.mail.AuthenticationFailedException:550 5.2.1 无法访问邮箱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在通过 Outlook 发送电子邮件时遇到此异常.

I'm getting this exception when sending email via outlook.

props.put("mail.smtp.auth", "true");
props.put("mail.smtp.starttls.enable", "true");
props.put("mail.smtp.host", "outlook.office365.com");
props.put("mail.smtp.port", "587");

但是从gmail我可以发送邮件但是我不能通过outlook发送..任何机构都可以帮助我解决这个问题...

but from gmail I can send mail but I can't send via outlook..Any body help me how to fix this...

不,它不是重复的..

如果我传递了错误的用户名和密码,它会显示我身份验证失败",但是当我提供正确的用户名和密码时,它会显示为无法访问邮箱"

if I pass wrong username and password its showing me as "authentication failed",but when I give correct username and password its showing as "mail box cannot be accessed"

推荐答案

5.2.1:无法访问邮箱

5.2.1: Mailbox cannot be accessed

无法访问邮箱.邮箱可能处于脱机、禁用状态或邮件已被规则隔离.

The mailbox cannot be accessed. The mailbox may be offline, disabled, or the message has been quarantined by a rule.

检查收件人数据库是否在线、收件人邮箱是否已禁用或邮件是否已被隔离.

Check to see if the recipient database is online, the recipient mailbox is disabled, or the message has been quarantined.

无法访问邮箱.也许消息太大了.或者,邮箱已被禁用,或处于脱机状态.检查收件人的邮箱.否则可能是权限问题,特别是在公共文件夹上.如果是这样,请尝试此 PowerShell 命令:

get-PublicFolderClientPermission "\ProblemFolder"

资源链接:

  1. http://osticket.com/forum/discussion/87831/smtp-authentication-failure-office-365
  2. https://gallery.technet.microsoft.com/office/Explanation-of-Enhanced-5b062775

这篇关于获取异常:javax.mail.AuthenticationFailedException:550 5.2.1 无法访问邮箱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-16 19:34