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

# sendEmail

[API Reference](/api-reference/@modelence/aws-ses/functions/../../../index) / [@modelence/aws-ses](/api-reference/@modelence/aws-ses/functions/../index) / sendEmail

> **sendEmail**(`payload`): `Promise`\<`void`>

Defined in: [index.ts:83](https://github.com/modelence/modelence/blob/f614ecc6811cdda9670d612872c8ff49a49c5e28/packages/aws-ses/src/index.ts#L83)

Sends an email via Resend.

## Example

```ts theme={null}
import { sendEmail } from '@modelence/aws-ses';

sendEmail({
 from: 'test@example.com',
 to: 'test@example.com',
 subject: 'Test Email',
 html: '<h1>Hello World</h1>'
})
```

## Parameters

| Parameter | Type                                                                                       | Description               |
| --------- | ------------------------------------------------------------------------------------------ | ------------------------- |
| `payload` | [`EmailPayload`](/api-reference/@modelence/aws-ses/functions/../type-aliases/EmailPayload) | The email payload object. |

## Returns

`Promise`\<`void`>
