email

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email struct {
	*SMTPInfo
}

自定义邮件类

func NewEmail

func NewEmail(info *SMTPInfo) *Email

创建自定义邮件

func (*Email) SendEmail

func (e *Email) SendEmail(subject, body string, to []string, Cc []string) error

SendEmail 发送邮件

type SMTPInfo

type SMTPInfo struct {
	Host     string
	Port     int
	IsSSL    bool
	UserName string
	PassWord string
	From     string
}

参数

Jump to

Keyboard shortcuts

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