> For the complete documentation index, see [llms.txt](https://zlian.gitbook.io/zhilian-cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zlian.gitbook.io/zhilian-cloud/zhun-bei-an-zhuang/zhi-lian-yun-ka-you-xiang-xi-tong-she-zhi-jiao-cheng.md).

# 值联云卡 - 邮箱系统设置教程

邮件服务器的设置方法 找到如下文件

<div align="left"><img src="/files/-Mk4bqFWMd1us_Qt6BFy" alt=""></div>

进行如下设置

<div align="left"><img src="/files/-Mk4cH27Jo3GPc67z_fY" alt=""></div>

如果使用22端口发送，可以使用如下方法：【默认为465】

```
## 使用25端口认证
spring.mail.port=25
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.starttls.enable=true
spring.mail.properties.mail.smtp.starttls.required=true

## 使用465端口SSl认证
#spring.mail.properties.mail.smtp.auth=true
#spring.mail.properties.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
#spring.mail.properties.mail.smtp.socketFactory.port=465
```

### 下面介绍开启QQ邮箱服务器方法

这里的密码不是登录密码，获取方式以QQ邮箱为例，进入“设置/账户”：

![](/files/-Mk4eVCDI5HDISqkBk-J)

找到“POP3/IMAP/SMTP/Exchange/CardDAV/CalDAV服务”：

<div align="left"><img src="/files/-Mk4dqMrqcXDg3Tbfbml" alt=""></div>

点击“开启”就会弹出密码，application.yml文件中25端口和465端口配置一个即可，一般服务器25端口是封闭的，建议使用465端口。
