mailer

package
v0.0.0-...-ec7f410 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2014 License: MIT Imports: 0 Imported by: 4

Documentation

Overview

Package mailer provides email delivery (current delivery methods are 'postmark' and 'test')

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	Name        string
	ContentType string
	Content     []byte
}

type Email

type Email struct {
	From    string
	ReplyTo string

	To  []string
	Cc  []string
	Bcc []string

	Subject  string
	HtmlBody string
	TextBody string

	Headers     map[string]string
	Attachments []Attachment
}

func NewEmail

func NewEmail() Email

type Mailer

type Mailer interface {
	Send(Email) error
}

Directories

Path Synopsis
Package postmark implements a backend for 'mailer' via postmark
Package postmark implements a backend for 'mailer' via postmark
Package test_mailer implements a backend for 'mailer' which writes emails to STDOUT instead of sending them
Package test_mailer implements a backend for 'mailer' which writes emails to STDOUT instead of sending them

Jump to

Keyboard shortcuts

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