springboot 发送邮件工具类

时间:2024-10-12 07:39:08

                                  springboot 发送邮件

1.加入依赖

       <!-- 邮件 -->
		<dependency>
			<groupId></groupId>
			<artifactId>spring-context-support</artifactId>
		</dependency>
		<dependency>
			<groupId></groupId>
			<artifactId>-api</artifactId>
		</dependency>
		<dependency>
			<groupId></groupId>
			<artifactId>spring-boot-starter-mail</artifactId>
		</dependency>
		<!-- 邮件 -->

2.向中添加

######企业邮箱########
=
=xxxx@
=xxx123456
=true
=true
=true