An open API service indexing awesome lists of open source software.

https://github.com/bernabe9/lambda-gmail-sender

Lambda function that sends Gmail emails
https://github.com/bernabe9/lambda-gmail-sender

email email-sender lambda serverless

Last synced: 6 months ago
JSON representation

Lambda function that sends Gmail emails

Awesome Lists containing this project

README

          

# Lambda Gmail Sender
Lambda function that sends Gmail emails

## Setup
1. Create a `config.yml` file in the root folder
2. Copy & paste the content from `config.example.yml` to `config.yml`
3. Replace the values with your data

## Deploy
1. Setup credentials for AWS lambda: https://serverless.com/framework/docs/providers/aws/guide/credentials/
2. Run `serverless deploy`

## Usage

Request a POST method to the lambda's endpoint with the following JSON format:

```
{
"subject": "My email",
"text": "email content"
}
```