notice

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailUtil

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

EmailUtil 邮件实体

func (*EmailUtil) Init

func (m *EmailUtil) Init(from string, userName string, password string, addr string, host string) *EmailUtil

Init 初始化

func (*EmailUtil) SendEmail

func (m *EmailUtil) SendEmail() (bool, error)

SendEmail 发送邮件

func (*EmailUtil) SetBcc

func (m *EmailUtil) SetBcc(bcc []string) *EmailUtil

SetBcc 设置秘密抄送

func (*EmailUtil) SetCc

func (m *EmailUtil) SetCc(cc []string) *EmailUtil

SetCc 设置抄送如果抄送多人逗号隔开

func (*EmailUtil) SetContent

func (m *EmailUtil) SetContent(content string) *EmailUtil

SetContent 设置文件发送的内容

func (*EmailUtil) SetSubject

func (m *EmailUtil) SetSubject(subject string) *EmailUtil

SetSubject 设置主题

func (*EmailUtil) SetTo

func (m *EmailUtil) SetTo(to []string) *EmailUtil

SetTo 设置接收方的邮箱

Jump to

Keyboard shortcuts

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