SMTP microservice and API for email delivery.
Get Micro Micro
go get github.com/micro
Install Consul https://www.consul.io/intro/getting-started/install.html
Run Consul
$ consul agent -dev -advertise=127.0.0.1
go run srv/main.go --email_host=SERVER_ADDRESS --email_host_port=SMPT_SERVER_PORT --email_host_user=USERNAME --email_host_password=PASSWORD --default_from_email=noreply@company.com
$ go run api/main.go
Flags have to be passed around, you will want to edit YML file with your SMTP server details.
Compile Go binaries and build docker image.
make
Run docker container:
docker-compose -f docker-compose-build.yml up