Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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.