email

package
v1.0.1-0...-bd443ad Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: Apache-2.0 Imports: 3 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 {
	Dialer *gomail.Dialer

	Address  string
	Host     string
	Port     int
	UserName string
	Password string
}

func NewEmail

func NewEmail(addr, host string, port int, name, password string) *Email

func (*Email) SendEmail

func (e *Email) SendEmail(ctx context.Context, to, subject, msg string) error

SendServiceUpEmail 发送服务启动消息

type IEmail

type IEmail interface {
	SendEmail(ctx context.Context, to, subject, msg string) error
}

func NewIEmail

func NewIEmail(cfg *ncfg.NConfig) IEmail

Jump to

Keyboard shortcuts

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