> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentlize.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Email notifications

# Email Notifications

> Gửi email tự động khi thêm thành viên hoặc tạo dự án mới.

***

## Email tự động

<Tabs>
  <Tab title="Welcome Email">
    Gửi khi thêm thành viên mới:

    * Tên thành viên và vai trò
    * Link đăng nhập Dashboard
    * HTML template với Agentlize branding (logo, brand color #2ea549)
    * From: `Agentlize <noreply@noreply.agentlize.dev>`
  </Tab>

  <Tab title="Project Notification">
    Gửi khi tạo dự án mới đến khách hàng:

    * Tên dự án và mô tả
    * Tên khách hàng, người phụ trách
    * Ngày bắt đầu và deadline
    * CTA button "Xem dự án trên Dashboard"
  </Tab>
</Tabs>

***

## Cấu hình

| Setting  | Value                                       |
| -------- | ------------------------------------------- |
| Provider | Resend REST API                             |
| From     | `Agentlize <noreply@noreply.agentlize.dev>` |
| API Key  | Cloudflare Worker secret (`RESEND_API_KEY`) |
| Pattern  | Fire-and-forget (`sendEmailAsync`)          |

<Note>
  `sendEmailAsync` bắt lỗi và log — không throw, không block API response.
</Note>

***

## Architecture

```
API Route (team/route.ts, projects/route.ts)
  → INSERT into DB
  → return response immediately
  → sendEmailAsync() fires in background
    → fetch(Resend API)
    → log success/error
```

***

## Domain Verification

Domain `noreply.agentlize.dev` đã verify trên Resend:

* SPF record ✅
* DKIM record ✅
* MX record ✅

***

## Read Next

<CardGroup>
  <Card title="Quản lý đội nhóm" icon="users" href="/team" />

  <Card title="Quản lý dự án" icon="folder" href="/projects" />
</CardGroup>
