Spring JavaMail qq邮箱发送文本邮件(个人邮箱)
1、开启发送邮箱的SMTP服务
设置-账户
拉至最下方
开启之后,得到授权码
2、添加jar包
<!-- https://mvnrepository.com/artifact/com.sun.mail/javax.mail -->
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
...
原创
2021-01-27 14:07:04 ·
364 阅读 ·
0 评论