email

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig(conf *EmailConfig) error

func SendEmail

func SendEmail(param EmailParam) error

func SendEmailByData

func SendEmailByData(subject, content string, to []string) error

func SendEmailByType

func SendEmailByType(param EmailParam, msgType msgtype.MsgType) error

Types

type EmailConfig

type EmailConfig struct {
	Host     string
	Port     int
	Username string
	Password string
}

type EmailParam

type EmailParam struct {
	To      []string
	Data    string
	Test    bool
	MsgCode string //see msttype.sms_type
}

Jump to

Keyboard shortcuts

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