由于工作需要 ,需要在windows服务器上搭建内网邮箱服务用于测试,本文选择 Apache James 2.3.2.1 进行搭建,并且将配置操作最简化,仅适合临时搭建,用于测试,不适合在生产环境上部署,操作步骤如下:
> telnet localhost 4555
> adduser admin admin
<!-- pom.xml -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
</dependency>
# bootstrap.xml
spring:
mail:
host: localhost
username: test
password: test
port: 25
protocol: smtp
default-encoding: UTF-8