emailutil

package
v0.0.0-...-c39e8e5 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Address

func Address(name, email string) string

Address creates a new email address.

func Make

func Make(h *Header, body []byte) []byte

Make creates an email with the given header and body.

func TemplateMake

func TemplateMake(
	h *Header, t *template.Template, dat interface{},
) ([]byte, error)

TemplateMake creates an email using the given template

Types

type Header struct {
	From    string
	To      string
	Cc      string
	Bcc     string
	Subject string
	Time    time.Time
}

Header is an email header.

Jump to

Keyboard shortcuts

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