command
module
Version:
v0.0.0-...-37bf6de
Opens a new window with list of versions in this module.
Published: Oct 30, 2016
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Mail-srv
Mail-srv is a microservice used to send & track emails using Postmark API. Built for Golang micro.mu
Getting started
-
Install Consul
Consul is the default registry/discovery for go-micro apps. It's however pluggable.
https://www.consul.io/intro/getting-started/install.html
-
Run Consul
$ consul agent -server -bootstrap-expect 1 -data-dir /tmp/consul
-
Setup config values in Consul KV
mail/server-token
Your postmark server token.
mail/templates/{template-alias}
Template aliases "KV" folder
-
Download and start the service
go get github.com/suicidegang/mail-srv
mail-srv
The API
Mailing server implements the following RPC Methods
Mailing
Mailing.SendTemplate
$ micro query sg.micro.srv.mail Mailing.SendTemplate '{
"template": "user.signup",
"variables": {"base_url": "https://spartangeek.com"},
"message": {
"from": "pedidos@spartangeek.com",
"fromName": "Lic. Alberto",
"to": "fernandez14@outlook.com",
"toName": "Nobody"
}
}'
{
"messageID": "bdff86f7-75d4-46b7-88f3-93b53a5b8448"
}
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
|
|
proto
|
|
mail
Package mail is a generated protocol buffer package.
|
Package mail is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.