notifications

package
v0.0.0-...-53d1e61 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 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 Emailx

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

func NewEmail

func NewEmail(options EmailxOptions) *Emailx

func (*Emailx) Send

func (e *Emailx) Send(to string, subject string, buf []byte) error

type EmailxOptions

type EmailxOptions struct {
	SmtpServer   string
	SmtpPort     int
	SmtpUsername string
	SmtpPassword string
	TLSConfig    *tls.Config
}

* settings for email smtp server 例如:smtp.qq.com:465 SmtpServer string smtp.qq.com SmtpPort int 465 SmtpUsername string sender email address xxxx@qq.com smtpPassword string sender email password xxxxxxxx

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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