email

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailGun

type MailGun struct {
	// contains filtered or unexported fields
}

func (*MailGun) Send

func (mg *MailGun) Send(message *Message) (*MessageID, error)

type Message

type Message struct {
	From    string   `json:"from"`
	To      []string `json:"to"`
	Subject string   `json:"subject"`
	Text    string   `json:"text"`
	HTML    string   `json:"html"`
}

type MessageID

type MessageID struct {
	ID string `json:"id"`
}

type Sender

type Sender interface {
	Send(*Message) (*MessageID, error)
}

func NewMailGun

func NewMailGun(config *conf.MailGun) Sender

Jump to

Keyboard shortcuts

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