mail

package module
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: MIT Imports: 4 Imported by: 1

README

go-ses

Package ses provides a small wrapper around AWS SES.

Badges

GoDoc


tjholowaychuk.com  ·  GitHub @tj  ·  Twitter @tjholowaychuk

Documentation

Overview

Package mail provides a small wrapper around AWS SES for sending emails.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(e Email) error

Send an email.

Types

type Client

type Client struct {
	Service sesiface.SESAPI
}

Client is the mail client.

func New

func New(s sesiface.SESAPI) *Client

New returns a new mail client with the given SES service implementation.

func (*Client) Send

func (c *Client) Send(e Email) error

Send an email.

type Email

type Email struct {
	// From is the source email.
	From string

	// To is a set of destination emails.
	To []string

	// ReplyTo is a set of reply to emails.
	ReplyTo []string

	// Subject is the email subject text.
	Subject string

	// Text is the plain text representation of the body.
	Text string

	// HTML is the HTML representation of the body.
	HTML string
}

Email options.

Jump to

Keyboard shortcuts

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