Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/4thel00z/emailambda
Lambda webhook to send emails from (currently only) ye gmail account.
https://github.com/4thel00z/emailambda
email gmail go golang lambda oauth oauth2 secure send smtp webhook
Last synced: about 1 month ago
JSON representation
Lambda webhook to send emails from (currently only) ye gmail account.
- Host: GitHub
- URL: https://github.com/4thel00z/emailambda
- Owner: 4thel00z
- License: gpl-3.0
- Created: 2022-01-06T02:25:04.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-06T03:57:36.000Z (about 3 years ago)
- Last Synced: 2024-11-24T16:51:58.151Z (about 1 month ago)
- Topics: email, gmail, go, golang, lambda, oauth, oauth2, secure, send, smtp, webhook
- Language: Go
- Homepage:
- Size: 50.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# emailambda
## Motivation
Like [emaild](https://github.com/4thel00z/emaild) but deployable to netlify.
## Deploy to netlify
## Configuration
There are three main env vars that configure emailambda:
| Name | Description |
|--------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| BASIC_AUTH | The value that the http authorization header is expected to have. This value is very important because it secures your lambda from being called by evil häggerbois. |
| GMAIL_TOKEN | The gmail token generated via gmail-token (find it in the 4thel00z/emaild github repository) encoded as a base64 string |
| GMAIL_CONFIG | The credentials.json file that you have generate followed my smartboi tutorial (also in the 4thel00z/emaild github repository) encoded as a base64 string |You can use the netlify cli to set them:
```shell
netlify env:set GMAIL_TOKEN=$GMAIL_TOKEN
netlify env:set GMAIL_CONFIG=$GMAIL_CONFIG
netlify env:set BASIC_AUTH=$BASIC_AUTH
```Note: The netlify cli can be installed as follows: `npm install -g netlify-cli`.
Alternatively you can set this when you press on the deploy button or later in the settings when you have deployed the lambda.
## License
This project is licensed under the GPL-3 license.