email

package
v0.0.0-...-714bc2e Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(smtp string, port int, username string, password string) (webmail.Client, error)

NewClient .

Types

type ContentType

type ContentType string

ContentType content-type of message

const (
	// ContentTypeHTML "text/html"
	ContentTypeHTML ContentType = "text/html"
	// ContentTypePlain "text/plain"
	ContentTypePlain ContentType = "text/plain"
)

type Message

type Message struct {
	To          []string    // 收件人
	Cc          []string    // 抄送人
	Subject     string      // 标题
	Content     string      // 内容
	ContentType ContentType // 内容类型
	Attach      string      // 附件
}

Message .

Jump to

Keyboard shortcuts

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