Skip to main content

Prerequisites

Before you start, you’ll need:

Guide

1

Create an AWS Lambda function

Go to aws.amazon.com and create a new Lambda function using the Node.js 20.x or later runtime.AWS Lambda - New Function
2

Edit the handler function

Paste the following code into the browser editor:
index.mjs
3

Deploy and send email

Click on Deploy and then Test at the top of the screen.AWS Lambda - Edit Function

Examples

AWS Lambda Example

See the full source code.