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

# sent_email

> sent_email 事件。

向玩家发送电子邮件或发送失败时触发此事件。

## 属性

| 名称                | 类型                                                                                        | 描述                               |
| :---------------- | :---------------------------------------------------------------------------------------- | :------------------------------- |
| Body              | String                                                                                    | 电子邮件正文内容，截断为 4096 个字符。           |
| EmailName         | String                                                                                    | 电子邮件所发送到的玩家联系电子邮件的名称。            |
| EmailTemplateId   | String                                                                                    | 发送电子邮件尝试期间使用的电子邮件模板 ID。          |
| EmailTemplateName | String                                                                                    | 发送电子邮件尝试期间使用的电子邮件模板名称。           |
| EmailTemplateType | [EmailTemplateType](/services/playfab/api-references/events/data-types/emailtemplatetype) | 发送电子邮件尝试期间使用的电子邮件模板类型。           |
| ErrorMessage      | String                                                                                    | 电子邮件发送失败时发生的错误。                  |
| ErrorName         | String                                                                                    | 电子邮件发送失败时发生的错误的名称。               |
| Language          | String                                                                                    | 发送电子邮件所使用的语言                     |
| Subject           | String                                                                                    | 电子邮件主题内容，截断为 1024 个字符。           |
| Success           | Boolean                                                                                   | 指示电子邮件是否发送成功。                    |
| TitleId           | String                                                                                    | 此玩家事件适用的游戏的 ID。                  |
| Token             | String                                                                                    | 作为确认 URL 的一部分包含在已发送电子邮件中的身份验证令牌。 |

## 常用属性

所有 V1 PlayStream 事件都格式化为 JSON 对象，并共享以下常用属性：

| 名称             | 类型                                                                          | 描述                                                                                                                                                                                  |
| :------------- | :-------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| EntityId       | String                                                                      | 此事件适用的实体（title、player 等）的标识符。                                                                                                                                                       |
| EntityType     | String                                                                      | 此事件适用的实体类型（player、title 等）。如果 PlayFab 需要对此实体执行操作，则 EntityType 必须为 'player'、'character' 或 'title' 之一。任何 PlayFab 当前未解析的实体类型都必须添加命名空间前缀（例如 'com.mygame.guild'），因为 PlayFab 随时可能开始解析根实体。 |
| EventId        | String                                                                      | PlayFab 为此事件分配的唯一标识符。                                                                                                                                                               |
| EventName      | String                                                                      | 此事件的名称。                                                                                                                                                                             |
| EventNamespace | String                                                                      | 为此事件分配的命名空间。例如：'com.myprogram.ads'                                                                                                                                                  |
| Source         | String                                                                      | 此 PlayStream 事件源的名称；如果事件源自我们，则值为 PlayFab。                                                                                                                                           |
| SourceType     | [SourceType](/services/playfab/api-references/events/data-types/sourcetype) | 此事件的源类型（PlayFab 合作伙伴、其他后端或来自 PlayFab API）。                                                                                                                                          |
| Timestamp      | DateTime                                                                    | 与此事件关联的时间（UTC）。                                                                                                                                                                     |


## Related topics

- [email_sent](/zh-CN/services/playfab/api-references/events/TitleCommunications/email-sent.md)
- [PlayFab 的 PlayStream 事件模型参考](/zh-CN/services/playfab/api-references/events/index.md)
- [player_password_reset_link_sent](/zh-CN/services/playfab/api-references/events/PlayerIdentity/player-password-reset-link-sent.md)
- [sent_push_notification](/zh-CN/services/playfab/api-references/events/TitleCommunications/sent-push-notification.md)
- [push_notification_sent](/zh-CN/services/playfab/api-references/events/TitleCommunications/push-notification-sent.md)
