Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ericklima-ca/mailer_api
A simple API to send emails via HTTP using SMTP client.
https://github.com/ericklima-ca/mailer_api
docker smtp-client
Last synced: 6 days ago
JSON representation
A simple API to send emails via HTTP using SMTP client.
- Host: GitHub
- URL: https://github.com/ericklima-ca/mailer_api
- Owner: ericklima-ca
- License: mit
- Created: 2022-08-10T02:27:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-17T00:27:29.000Z (about 2 years ago)
- Last Synced: 2024-06-21T09:56:25.858Z (5 months ago)
- Topics: docker, smtp-client
- Language: Go
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mailer API | ![example workflow](https://github.com/ericklima-ca/mailer_api/actions/workflows/go.yml/badge.svg)
## Intro
A simple mailing service via HTTP.
It receives messages from a POST payload and send email as requested, if the message is valid.
The message must have the format like [Message](#message-struct).
To connect to the server, set `HOST_SMTP` environment variable.
For now, it only accepts the gmail server (setted host and port to `"smtp.gmail.com:465"`).## MESSAGE STRUCT
``` go
type message struct {
To string `json:"to"`
Subject string `json:"subject"`
Body string `json:"body"`
From string `json:"from"`
Token string `json:"token"` // a temporary token!
}
```
## TODOS
- [ ] Add validator hooks for package mailer.