This repository contains a Lambda function that is connected to an SQS queue to receive messages and send emails based on the information.
The credentials to access SMTP server are expected to stored in SSM Parameter Store. The parameter values are prefixed with DynamoCode.EmailSender which corresponds to the AppName value. It can be overridden at deploy time as a template parameter.
/DynamoCode.EmailSender/SmtpSettings/Server
/DynamoCode.EmailSender/SmtpSettings/Port
/DynamoCode.EmailSender/SmtpSettings/Username
/DynamoCode.EmailSender/SmtpSettings/Password
/DynamoCode.EmailSender/SmtpSettings/EnableSsl
{
    "FromEmail": "[email protected]", 
    "FromName": "My App Test",
    "ToEmail": "[email protected]",
    "Subject": "test from lambda SQS",
    "Body": "Text to send in an email body. <br/> Here is a <a href='www.example.com'>link</a> to test HTML"
}- .NET Core 3.1 - Install .NET Core
- SAM CLI - Install the SAM CLI
sam buildUpdate file samconfig.toml accordingly and then run
sam deployAlternatively just run
sam deploy --guided