> ## 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](https://docs.modelence.com/api-reference/@modelence/aws-ses/functions/../../../index) / [@modelence/aws-ses](https://docs.modelence.com/api-reference/@modelence/aws-ses/functions/../index) / sendEmail

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

Defined in: [index.ts:83](https://github.com/modelence/modelence/blob/main/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`](https://docs.modelence.com/api-reference/@modelence/aws-ses/functions/../type-aliases/EmailPayload) | The email payload object. |

## Returns

`Promise`\<`void`>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.