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

# 通过 API 发送邮件

> 通过 YCloud API 发送事务性邮件或通知邮件。

在发送邮件之前，请在 YCloud 中添加并激活您的发件人域名。然后安全地保存您的 API 密钥，并向 `/v2/emails` 发送 `POST` 请求。

该 API 支持 HTML 和纯文本内容、多个收件人、附件、个性化变量以及送达状态 Webhook。

<CardGroup cols={2}>
  <Card title="查看邮件指南" icon="book-open" href="/zh/api-reference/guides/messaging/send-email">
    配置发件人并发送您的第一个邮件请求。
  </Card>

  <Card title="打开 API 端点" icon="code" href="/api-reference/emails/send-an-email">
    查看每个请求字段、响应和代码示例。
  </Card>
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.