# UserPoolEmail

Configure how Cognito sends emails.

- Source: [`aws-cognito/lib/user-pool-email.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-cognito/lib/user-pool-email.ts#L118)

## Example

```ts
new cognito.UserPool(this, 'myuserpool', {
  email: cognito.UserPoolEmail.withSES({
    fromEmail: 'noreply@myawesomeapp.com',
    fromName: 'Awesome App',
    replyTo: 'support@myawesomeapp.com',
  }),
});
```

## Initializer

```ts
new UserPoolEmail()
```

## Methods

- `withCognito(replyTo?: string): UserPoolEmail // chainable` (static) — Send email using Cognito.

- `withSES(options: UserPoolSESOptions): UserPoolEmail // chainable` (static) — Send email using SES.
