srv

command
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 Imports: 5 Imported by: 0

README

SMTP srv GoDoc

This is the SMTP service with fqdn go.micro.srv.smtp for email delivery.

Getting Started

Prerequisites

Install Consul https://www.consul.io/intro/getting-started/install.html

Run Consul

$ consul agent -dev -advertise=127.0.0.1
Run Service
$ go run main.go
Usage
Send
micro query go.micro.srv.smtp SMTP.Send '{"recipient":["user@domain.com", "user2@domain.com"], "subject": "Mail subject", "body": "<table style=\"width:100%;\"><tr><td>lets</td><td>see</td></tr><tr><td>the</td><td>markup</td></tr></table>"}'

{}
SetSettings
micro query go.micro.srv.smtp SMTP.SetSettings '{"email_host": "EmailHost", "email_host_user": "EmailHostUser", "email_host_password": "EmailHostPassword", "email_host_port": "EmailHostPort", "default_from_email": "DefaultFromEmail"}'

{}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
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