smtp

module
v0.0.0-...-08917dc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2016 License: Apache-2.0

README

SMTP License Go Report Card

SMTP microservice and API for email delivery.

Getting Started

Prerequisites

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
Run Service manually
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
Run API manually
$ go run api/main.go
Run docker containers

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

Usage

API

Microservice

Directories

Path Synopsis
api
srv
proto/smtp
Package go_micro_srv_smtp is a generated protocol buffer package.
Package go_micro_srv_smtp is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL