Using AWS SES with a Lambda function (nodejs) called from S3

My setup is the following: Lambda provides an API endpoint to a function which sends out an email via AWS SES API endpoint is called from static JS file on a S3 bucket This works: var exec = req...