> ## 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.

# PFAccountManagementClientSendAccountRecoveryEmailAsync

> 強制將電子郵件寄送至使用者帳戶的註冊電子郵件地址，其中包含可讓使用者變更密碼的連結。如果提供帳戶復原電子郵件範本識別碼，將會使用採用自訂電子郵件範本的電子郵件。

強制將電子郵件寄送至使用者帳戶的註冊電子郵件地址，其中包含可讓使用者變更密碼的連結。如果提供帳戶復原電子郵件範本識別碼，將會使用採用自訂電子郵件範本的電子郵件。

## 語法

```cpp theme={null}
HRESULT PFAccountManagementClientSendAccountRecoveryEmailAsync(  
    PFServiceConfigHandle serviceConfigHandle,  
    const PFAccountManagementSendAccountRecoveryEmailRequest* request,  
    XAsyncBlock* async  
)  
```

### 參數

**`serviceConfigHandle`**   PFServiceConfigHandle

從 PFServiceConfigCreateHandle 呼叫傳回的 PFServiceConfigHandle。

**`request`**   [PFAccountManagementSendAccountRecoveryEmailRequest\*](/zh-TW/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementsendaccountrecoveryemailrequest)

已填入的要求物件。

**`async`**   XAsyncBlock\*<br />*Inout*

用於非同步作業的 XAsyncBlock。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。

## 備註

此 API 適用於 Linux 和 macOS。如果相關帳戶是「暫時」帳戶 (例如透過呼叫 LoginFromIOSDeviceID 所建立的帳戶)，此函式將不會有任何作用。只有具備有效電子郵件地址的 PlayFab 帳戶，才能使用此 API 接收密碼重設電子郵件。呼叫 XAsyncGetStatus 以取得作業的狀態。如果服務呼叫失敗，非同步結果將為 E\_PF\_EMAIL\_RECIPIENT\_BLACKLISTED、E\_PF\_INVALID\_EMAIL\_ADDRESS、E\_PF\_NO\_CONTACT\_EMAIL\_ADDRESS\_FOUND、E\_PF\_SMTP\_ADDON\_NOT\_ENABLED 或任何全域 PlayFab 服務錯誤。如需錯誤處理的詳細資訊，請參閱文件頁面「Handling PlayFab Errors」。

## 需求

**標頭：** PFAccountManagement.h

## 另請參閱

[PFAccountManagement 成員](/zh-TW/services/playfab/api-references/c/pfaccountmanagement/pfaccountmanagement_members)


## Related topics

- [服務 C API 概觀 - PFAccountManagement.h](/zh-TW/services/playfab/api-references/c/pfaccountmanagement/pfaccountmanagement_members.md)
- [Send Account Recovery Email](/api-reference/account-management/send-account-recovery-email.md)
- [Send Custom Account Recovery Email](/api-reference/account-management/send-custom-account-recovery-email.md)
- [PFAccountManagementServerSendCustomAccountRecoveryEmailAsync](/zh-TW/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserversendcustomaccountrecoveryemailasync.md)
- [PFAccountManagementSendAccountRecoveryEmailRequest](/zh-TW/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementsendaccountrecoveryemailrequest.md)
