535 Error: authentication failed

1、错误描述

535 Error: authentication failed
Exception in thread "main" javax.mail.AuthenticationFailedException
	at javax.mail.Service.connect(Service.java:267)
	at javax.mail.Service.connect(Service.java:137)
	at com.you.mail.model.SendMessage.sendMessage(SendMessage.java:70)
	at com.you.mail.model.SendMessage.main(SendMessage.java:89)

2、错误原因

实现发送邮件功能,必须需要登录用户帐号和密码,为了安全起见,我没有输入邮箱账户密码(设置为空),导致无法登陆邮箱,出现报错

3、解决办法

给出正确的登录邮箱密码

版权声明:本文为博主原创文章,未经博主允许不得转载。

时间: 2024-07-28 18:21:43

535 Error: authentication failed的相关文章

javaMail使用163邮箱报535 Error: authentication failed

javaMail使用网易163邮箱或者是126或者是网易其他邮箱报535 Error: authentication failed javax.mail.AuthenticationFailedException: 535 Error: authentication failed at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:648) at com.sun.mail.smtp.SM

163邮箱报错WARN: 535 Error: authentication failed.

会让输入自定义授权码..用这个密码代替邮箱的密码,就可以发邮件了.

JavaMail authenticating 535 error

org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.163.com:25 at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1242) at org.apache.commons.mail.Email.send(Email.java:1267) at excelWatcher.MailUt

MongoDB3.4安装配置以及与Robomongo1.1的连接——解决Authentication Failed导致的不能连接问题

本文环境:win10(64)+MongoDB(3.4.5)+Robomongo(1.1) 目录: MongoDB的安装 MongoDB的配置 Robomongo的安装以及与MongoDB的连接 一些新出现的幺蛾子 一.MongoDB的安装 Step1. 打开MongoDB产品下载页面https://www.mongodb.com/download-center?jmp=nav#community,选择Windows Server 2008 R2 64-bit and later, with SS

gitlab fatal: Authentication failed for 'http://10.2.80.17:8090/yeyichao/201904041026PROj.git/'

fatal: Authentication failed for 'http://10.2.80.17:8090/yeyichao/201904041026PROj.git/' git config --system --unset credential.helper Push failed: Failed with error: Authentication failed for 血泪史 2018年10月11日 21:26:35 NoOne-csdn 阅读数:833 原因:git 登录时用了一

SMTP ERROR: Password command failed: 535 Incorrect authentication data

在处理一个使用PHPMailer来发送电邮,我在本地使用我的163邮箱来做测试发送电邮,能够成功的发送电邮:当上传到正式平台时,出现了,类似这样的错误信息 SMTP ERROR: Password command failed: 535 Incorrect authentication data ,SMTP connect() failed. 在2015-03-03下午时,接近下班的时候,我在测试出现的,怎么也发送不了邮件,当时我的PHPMailer的SMTPDebug是设置为1的. 到了201

关于发邮件报错535 Error:authentication failed&553 authentication is required

553 authentication is required:这个错误的意思是你必须需要认证. 也就是说,你连接smtp服务器的时候必须使用密码来连接:下面代码红色那句 代码: 1 @Override 2 public void run() { 3 try { 4 log.info("邮件创建开始了...."); 5 //1.创建session 6 Session session = Session.getInstance(prop); 7 //2.开启session的debug模式,

网易客户端授权密码,errormsg='authentication failed (method LOGIN)' exitcode=EX_NOPERM

zabbix群里一网友在安装msmtp+mutt测试发送邮件失败 配置文件如下: /usr/local/msmtp/etc/msmtprc account default host smtp.163.com port 25 from [email protected]163.com auth login tls off user [email protected]163.com password xxxxx logfile /var/log/mmlog 测试发送的时候报错: [[email pr

IndexOf("authentication failed") > -1

if (e.Value.Error.Message.IndexOf("authentication failed") > -1) { strFailMessage = "邮件发送失败 : 此邮箱认证失败(帐号密码不匹配),请在修正后重新尝试."; } indexof>-1 判断字符串中是否包含某字符串 indexof=-1 字符串中不包含某字符串