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

# PFAccountManagementServerSendEmailFromTemplateAsync

> 이메일 템플릿을 기반으로 플레이어의 연락처 이메일로 이메일을 전송합니다.

이메일 템플릿을 기반으로 플레이어의 연락처 이메일로 이메일을 전송합니다.

## 구문

```cpp theme={null}
HRESULT PFAccountManagementServerSendEmailFromTemplateAsync(  
    PFEntityHandle titleEntityHandle,  
    const PFAccountManagementSendEmailFromTemplateRequest* request,  
    XAsyncBlock* async  
)  
```

### 매개 변수

**`titleEntityHandle`**   PFEntityHandle

PFAuthenticationGetEntityWithSecretKeyAsync를 사용하여 얻은 타이틀 Entity의 PFEntityHandle입니다.

**`request`**   [PFAccountManagementSendEmailFromTemplateRequest\*](/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementsendemailfromtemplaterequest)

채워진 요청 객체입니다.

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

비동기 작업을 위한 XAsyncBlock입니다.

### 반환 값

형식: HRESULT

이 API 작업의 결과 코드입니다.

## 설명

이 API는 Win32, Linux 및 macOS에서 사용할 수 있습니다. 연락처 이메일이 연결된 플레이어에게만 이메일을 전송합니다. 보낼 이메일 템플릿을 지정하는 이메일 템플릿 ID를 받습니다. XAsyncGetStatus를 호출하여 작업의 상태를 가져옵니다. 서비스 호출이 실패하면 비동기 결과는 E\_PF\_EMAIL\_CLIENT\_CANCELED\_TASK, E\_PF\_EMAIL\_CLIENT\_TIMEOUT, E\_PF\_EMAIL\_TEMPLATE\_MISSING, E\_PF\_NO\_CONTACT\_EMAIL\_ADDRESS\_FOUND, E\_PF\_SMTP\_ADDON\_NOT\_ENABLED 또는 전역 PlayFab 서비스 오류 중 하나가 됩니다. 오류 처리에 대한 자세한 내용은 “Handling PlayFab Errors” 문서 페이지를 참조하세요.

## 요구 사항

**헤더:** PFAccountManagement.h

## 참고 항목

[PFAccountManagement 멤버](/services/playfab/api-references/c/pfaccountmanagement/pfaccountmanagement_members)


## Related topics

- [PFAccountManagementServerSendCustomAccountRecoveryEmailAsync](/ko/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserversendcustomaccountrecoveryemailasync.md)
- [PFAccountManagementSendEmailFromTemplateRequest](/ko/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementsendemailfromtemplaterequest.md)
- [PFAccountManagementClientSendAccountRecoveryEmailAsync](/ko/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementclientsendaccountrecoveryemailasync.md)
- [PFAccountManagementSendAccountRecoveryEmailRequest](/ko/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementsendaccountrecoveryemailrequest.md)
- [PFAccountManagementSendCustomAccountRecoveryEmailRequest](/ko/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementsendcustomaccountrecoveryemailrequest.md)
