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

> Forces an email to be sent to the registered email address for the user's account, with a link allowing the user to change the password.If an account recovery email template ID is provided, an email using the custom email template will be used.

Forces an email to be sent to the registered email address for the user's account, with a link allowing the user to change the password.If an account recovery email template ID is provided, an email using the custom email template will be used.

## Syntax

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

### Parameters

**`serviceConfigHandle`**   PFServiceConfigHandle

PFServiceConfigHandle returned from PFServiceConfigCreateHandle call.

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

Populated request object.

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

XAsyncBlock for the async operation.

### Return value

Type: HRESULT

Result code for this API operation.

## Remarks

This API is available on Linux and macOS. If the account in question is a 'temporary' account (for example, one that was created via a call to LoginFromIOSDeviceID), thisfunction will have no effect. Only PlayFab accounts which have valid email addresses will be able to receive a password reset email using this API. Call XAsyncGetStatus to get the status of the operation. If the service call is unsuccessful, the async result will be E\_PF\_EMAIL\_RECIPIENT\_BLACKLISTED, E\_PF\_INVALID\_EMAIL\_ADDRESS, E\_PF\_NO\_CONTACT\_EMAIL\_ADDRESS\_FOUND, E\_PF\_SMTP\_ADDON\_NOT\_ENABLED or any of the global PlayFab Service errors. See doc page "Handling PlayFab Errors" for more details on error handling.

## Requirements

**Header:** PFAccountManagement.h

## See also

[PFAccountManagement members](https://docs.xbox.com/services/playfab/api-references/c/pfaccountmanagement/pfaccountmanagement_members.md)


## Related topics

- [Services C API overview - PFAccountManagement.h](https://docs.xbox.com/services/playfab/api-references/c/pfaccountmanagement/pfaccountmanagement_members.md)
- [Send Account Recovery Email](https://docs.xbox.com/services/playfab/api-references/rest/client/account-management/send-account-recovery-email.md)
- [PFAccountManagementServerSendCustomAccountRecoveryEmailAsync](https://docs.xbox.com/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserversendcustomaccountrecoveryemailasync.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/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementsendaccountrecoveryemailrequest.md)
