email

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxLineLength = 76 // MaxLineLength is the maximum line length per RFC 2045
)

Variables

This section is empty.

Functions

func TrimAddresses

func TrimAddresses(address string) string

workaround for go < 1.15

Types

type Attachment added in v0.0.3

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

type EmailBuilder

type EmailBuilder struct {
	From    string
	To      string
	ReplyTo string
	Body    string
	Subject string
	// contains filtered or unexported fields
}

func (*EmailBuilder) AddFile

func (b *EmailBuilder) AddFile(name string, data []byte, contentType string)

func (*EmailBuilder) Send

func (b *EmailBuilder) Send() (err error)

Jump to

Keyboard shortcuts

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