A simple lambda that takes in a name, message and email address. Sends an email to your desired mailbox.
Unique emails are saved to DynamoDB, emails can only be submitted once per week per address.
Install Serverless, follow the installation instructions here. Requires at least version v1.26 or later as that's the version that comes with Golang support.
To deploy run
serverless deploy
There is only one enpoint /sendMail
.
It requires a body consisting of:
{
"name": "String",
"email": "String",
"message": "String"
}