# Cấu hình SMTP

### **Cách để cài đặt SMTP email**

![](/files/-MLzXjX0UFlET0_p8yJH)

1. Name: Bạn điền tên của SMTP (tên này có thể tùy theo ý bạn)   &#x20;
2. Service: chọn nhà cung cấp mail. Ở phần này có Gmail và AWS bạn có thể chọn nhà cung cấp cho mình.    &#x20;
3. Host: bạn chọn host để gửi tin nhắn tự động (mặc định sẽ là smtp.gmail.com sử dụng cho service là gmail)   &#x20;
4. Port: phần này bạn chọn cổng port theo giao thức mật mã nhé (TLS, SSL, StartTLS)&#x20;
5. From address: email gửi tin nhắn &#x20;
6. Username: Tên đăng nhập emai  &#x20;
7. Password: Mật khẩu đăng nhập email. Nếu bạn dùng bảo mật 2 bước thì làm theo hướng dẫn dưới đây để lấy app password nhé


---

# 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://tailieu.botplus.io/email/cau-hinh-smtp.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.
