mailer

package
v0.0.0-...-d64f9d6 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email struct {
	EmailOptions
	PlainText string
	HTML      string
}

Email is a sendable mail object.

type EmailOptions

type EmailOptions struct {
	From    *mail.Address          // From is the name and email where this email is sent from.
	To      []mail.Address         // To holds one or more recipients.
	Subject string                 // Subject holds the email subject.
	Headers map[string]interface{} // Headers are standard email headers.
	Options interface{}            // Options can be a custom interface provided by the mailer implementation.
}

EmailOptions defines the configurations of a given email.

type Mailer

type Mailer interface {
	Ping() error             // Ping pings the address.
	Send(email *Email) error // Send sends an email.
}

Mailer defines the spec provider services implement for compatibility.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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