mailgun

package
v0.0.0-...-b18e6a5 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBackend

func NewBackend(domain, privateKey, publicKey string) (smtp.Backend, error)

NewBackend returns new instance of backend

Types

type Backend

type Backend struct {
	Domain string
	// contains filtered or unexported fields
}

Backend type

func (*Backend) AnonymousLogin

func (b *Backend) AnonymousLogin() (smtp.User, error)

AnonymousLogin returns anonymouse user object

func (*Backend) ListenAndServeMetrics

func (b *Backend) ListenAndServeMetrics(addr string) error

func (*Backend) Login

func (b *Backend) Login(username, password string) (smtp.User, error)

Login is used to authenticate the user In relay there's no need for that at the moment

type User

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

User type

func (*User) Logout

func (u *User) Logout() error

Logout is called after all operations are complete within the session Here in relay there's no need to implement anything special for that

func (*User) Send

func (u *User) Send(from string, to []string, r io.Reader) error

Send will send email synchronously via Mailgun service

Jump to

Keyboard shortcuts

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