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

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

<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端口。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://zlian.gitbook.io/zhilian-cloud/zhun-bei-an-zhuang/zhi-lian-yun-ka-you-xiang-xi-tong-she-zhi-jiao-cheng.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
