SpringBoot 实现邮件发送功能
0x00 添加Starter模块依赖
在 Maven pom.xml 配置文件中加入 spring-boot-starter-mail 依赖。
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
</dependency>
在 Maven pom.xml 配置文件中加入 spring-boot-starter-mail 依赖。
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
</dependency>
打开 php.ini 配置文件,搜索 #extension=php_com_dotnet.dll
,将前面的 # 注释打开,然后重启 web 服务。
可以使用 phpinfo()
函数打印并搜索 com_dotnet
关键字,确认扩展是否成功加载。