email

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

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

func NewContent

func NewContent(toAddresses []*ToAddress, subject string) *Content

func (*Content) SetAttach added in v0.0.13

func (c *Content) SetAttach(attach []string) *Content

func (*Content) SetContent

func (c *Content) SetContent(contentType, body string) *Content

type GoMail

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

func NewGoMail

func NewGoMail(host string, port int, username, password string, fromAddress string) *GoMail

func (*GoMail) SendMail

func (g *GoMail) SendMail(content *Content) error

type ToAddress

type ToAddress struct {

	// 收件人地址 *
	Address string

	// 收件人称呼
	Name string
}

Jump to

Keyboard shortcuts

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