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

# PFAccountManagementClientSendAccountRecoveryEmailAsync

> ユーザー アカウントに登録されているメール アドレスに対して、パスワード変更を可能にするリンクを含むメールの送信を強制的に実行します。アカウントが。

ユーザー アカウントに登録されているメール アドレスに対して、パスワード変更を可能にするリンクを含むメールの送信を強制的に実行します。アカウント リカバリー用メールのテンプレート ID が指定されている場合は、そのカスタム メール テンプレートを使用してメールが送信されます。

## 構文

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

### パラメーター

**`serviceConfigHandle`**   PFServiceConfigHandle

PFServiceConfigCreateHandle の呼び出しから返された PFServiceConfigHandle。

**`request`**   [PFAccountManagementSendAccountRecoveryEmailRequest\*](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementsendaccountrecoveryemailrequest.md)

値が設定されたリクエスト オブジェクト。

**`async`**   XAsyncBlock\*\
*Inout*

非同期操作用の XAsyncBlock。

### 戻り値

型: HRESULT

この API 操作の結果コード。

## 解説

この API は Win32、Linux、macOS で利用できます。対象アカウントが「一時的な」アカウント (たとえば LoginFromIOSDeviceID の呼び出しで作成されたもの) である場合、この関数は何も行いません。この API を使用してパスワード リセット メールを受信できるのは、有効なメール アドレスを持つ PlayFab アカウントのみです。操作の状態を取得するには 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 のメンバー](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfaccountmanagement/pfaccountmanagement_members.md)


## Related topics

- [PFAccountManagementServerSendCustomAccountRecoveryEmailAsync](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserversendcustomaccountrecoveryemailasync.md)
- [Send Account Recovery Email](https://docs.xbox.com/api-reference/account-management/send-account-recovery-email.md)
- [Send Custom Account Recovery Email](https://docs.xbox.com/api-reference/account-management/send-custom-account-recovery-email.md)
- [PFAccountManagementSendAccountRecoveryEmailRequest](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementsendaccountrecoveryemailrequest.md)
- [PFAccountManagementServerSendEmailFromTemplateAsync](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserversendemailfromtemplateasync.md)
