Lambda function to send emails with attachments An AWS Lambda function that sends attachments hosted on S3 by email with SES How to use Run npm install to install dependencies. Compress the project directory and upload as a zip to a new (or existing) Lambda function.