driver

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2016 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package driver defines interfaces to be implemented by email_sender drivers as used by package emailsender.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn interface {
	// SendHTML sends an HTML email to multiple recipients.
	SendHTML(to []string, from, subj, html string) error

	// SendPlainText sends a PlainText email to multiple recipients.
	SendPlainText(to []string, from, subj, plaintext string) error

	// Close the connection.
	Close() error
}

Conn is a connection to the external email service.

type Driver

type Driver interface {
	// Open returns a new connection to the email server. The name is a
	// string in a driver-specific format, often for authentication.
	Open(name string) (Conn, error)
}

Driver is the interface that must be implemented by an email driver.

Jump to

Keyboard shortcuts

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