Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ericklima-ca/mailmango
Email service worker in Golang using Rabbitmq
https://github.com/ericklima-ca/mailmango
golang rabbitmq smtp
Last synced: 6 days ago
JSON representation
Email service worker in Golang using Rabbitmq
- Host: GitHub
- URL: https://github.com/ericklima-ca/mailmango
- Owner: ericklima-ca
- Created: 2022-03-13T19:56:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-03-22T03:41:48.000Z (over 2 years ago)
- Last Synced: 2024-06-20T23:55:29.422Z (5 months ago)
- Topics: golang, rabbitmq, smtp
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MAILMANGO
## INTRODUCTION
A mailing service worker to [Bago](https://github.com/ericklima-ca/bago).
It receives messages from a queue on the rabbitmq server 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 `RABBITMQ_URL` environment variable.
For now, it only accepts the gmail server (setted host and port to `"smtp.gmail.com:465"`).
In this case, it is needed set `EMAIL_ADDR` and `EMAIL_PASS` environments variables, where `EMAIL_PASS` is the password got like [this](https://support.google.com/accounts/answer/185833?hl=en).
## MESSAGE STRUCT
``` go
type message struct {
To []string `json:"to,omitempty"`
Subject string `json:"subject,omitempty"`
Body string `json:"body,omitempty"`
}
```
## TODOS
- [ ] Add validator hooks for package mailer.