PTGUmail

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	BodyTypePlain = "plain"
	BodyTypeHTML  = "html"
)

Variables

This section is empty.

Functions

func SendMail

func SendMail(config ParamConfigSendMail) error

Types

type ParamConfigSendMail

type ParamConfigSendMail struct {
	SMTP ParamConfigSendMailSMTP
	From ParamConfigSendMailFrom
	To   ParamConfigSendMailTo
}

type ParamConfigSendMailFrom

type ParamConfigSendMailFrom struct {
	AliasName string
	Email     string
}

type ParamConfigSendMailSMTP

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

type ParamConfigSendMailTo

type ParamConfigSendMailTo struct {
	Email    []string
	Subject  string
	BodyType string
	Body     string
}

Jump to

Keyboard shortcuts

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