Java uses corporate email to send email error: 535 Login Fail. Please enter your authorization code to login. More information in

An error is reported when sending emails using Tencent Enterprise Mailbox:

535 Login Fail. Please enter your authorization code to login. More information in 
http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=28&&no=1001256

Error reason:
Tencent enterprise mailbox does not require an authorization code, password can be filled directly with the mailbox password, and the corresponding SMTP host name is changed to: smtp.exmail.qq.com

configuration file

  mail:
  	# SMTP主机
    host: smtp.exmail.qq.com
    # 邮箱
    username: xxxxxxxxxx@xxx.com
    # 密码
    password: xxxxxxxxxx
    # 编码格式
    default-encoding: utf-8

Guess you like

Origin blog.csdn.net/weixin_43749805/article/details/128372940