> 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).

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

Value Cloud Card - Mailbox System Setup Tutorial

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

<div align="left"><img src="https://1822359257-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdsO9QiZvrJgr51DDZi%2F-Mk4bZXapRQ_Jk-5znhE%2F-Mk4bqFWMd1us_Qt6BFy%2FQQ%E6%88%AA%E5%9B%BE20210921074838.png?alt=media&amp;token=afbdb8cb-2061-4a77-b976-e3f5130c6e7d" alt=""></div>

进行如下设置

<div align="left"><img src="https://1822359257-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdsO9QiZvrJgr51DDZi%2F-Mk4bZXapRQ_Jk-5znhE%2F-Mk4cH27Jo3GPc67z_fY%2FQQ%E6%88%AA%E5%9B%BE20210921075315.png?alt=media&amp;token=e80a4e6f-1ff6-4b98-8420-115f3a69abd8" 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邮箱为例，进入“设置/账户”：

![](https://1822359257-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdsO9QiZvrJgr51DDZi%2F-Mk4e7hY_OwdV4V0eALM%2F-Mk4eVCDI5HDISqkBk-J%2FZPRKrq.png?alt=media\&token=297d60ac-dce5-4785-94f9-eff83057d3b2)

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

<div align="left"><img src="https://1822359257-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdsO9QiZvrJgr51DDZi%2F-Mk4bZXapRQ_Jk-5znhE%2F-Mk4dqMrqcXDg3Tbfbml%2FZPR6RH.png?alt=media&amp;token=5f1b123b-65b2-43c5-9d36-cc7ad04bec68" alt=""></div>

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