配置/etc/mail.rc文件 set from=xxxxxxxx@163.com smtp=smtp.163.com set smtp-auth-user=yinhuanyi_cn@163.com smtp-auth-password=xxxxxxxx set smtp-auth=login echo "haha" | mail -s "ni hao " xxxxxx@163.com…
mailx加163邮箱发邮件 参考:https://www.cnblogs.com/myvic/p/9579954.html 配置 $ yum install mailx -y $ vim /etc/mail.rc set from=m17114517139_2@163.com set smtp=smtps://smtp.163.com:465 set smtp-auth-user=m17114517139_2@163.com set smtp-auth-password=zhj6b266 se…
Spring Boot 提供了一个发送邮件的简单抽象,使用的是下面这个接口. org.springframework.mail.javamail.JavaMailSender Spring Boot 提供了一个 starter,并能自动配置,下面来做个小例子,顺便解析它做了什么工作. 0.你所需具备的基础 什么是 Spring Boot? Spring Boot 核心配置文件详解 Spring Boot 开启的 2 种方式 Spring Boot 自动配置原理.实战 Spring Boot 2.…