# Outlook Mailer (oAuth2)

<figure><img src="/files/Buqm0fyNsrt7gecs0ZYG" alt=""><figcaption></figcaption></figure>

| parameter              | illustrate                                                                                                                                                            |
| ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Auth type              | bao gồm : GRAPH API, IMAP (Read mail)                                                                                                                                 |
| Client id              | nhập client id của hotmail                                                                                                                                            |
| Refresh token          | Nhập refresh token của hotmail                                                                                                                                        |
| Mark mail as read      | đánh dấu mail là đã đọc                                                                                                                                               |
| Get latest mail        | Đọc mail mới nhất, nếu không chọn ô này thì sẽ lấy 5 mail mới nhất                                                                                                    |
| Subject email contains | nhập tiêu đề của mail muốn đọc                                                                                                                                        |
| Content mail contains  | Nhập đoạn regex để lấy 1 phần trong mail. nếu bỏ trống, node sẽ lấy toàn bộ nội dung của email và ghi vào biến                                                        |
| Output variable        | kết quả sẽ dược lưu vào biến này                                                                                                                                      |
| Timeout waiting        | <p></p><p>Thời gian chờ đợi tối đa. Ví dụ: 30000. Nếu bước này không được thực hiện thành công trong vòng 30 giây thì bước tiếp theo sẽ được thực hiện trực tiếp.</p> |


---

# 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://docs.hidemium.io/automation-user-manual/data/outlook-mailer-oauth2.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.
