go_email

package module
v0.0.0-...-87c0ef0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	SendEmail(request *Email) error
	SetHeader(email *Email) textproto.MIMEHeader
	HeaderToBytes(buff io.Writer, header textproto.MIMEHeader)
}

func NewClient

func NewClient(option *ClientOption) Client

type ClientOption

type ClientOption struct {
	Host       string `json:"host"`
	ServerAddr string `json:"serverAddr"`
	User       string `json:"user"`
	Password   string `json:"password"`
}

type Email

type Email struct {
	To      []string `json:"to"`
	Subject string   `json:"subject"`
	Msg     string   `json:"msg"`
}

Jump to

Keyboard shortcuts

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