mail

package
v0.0.0-...-58fd0e2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClientWithConf

func NewClientWithConf(ctx *system.AppContext, logger *zap.SugaredLogger, config *Config) (*Client, error)

func (*Client) SendEmail

func (c *Client) SendEmail(m *Message)

type Config

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

func NewConfig

func NewConfig(host string, port int, username string, password string, keepAlive bool, connectTimeout time.Duration, sendTimeout time.Duration) *Config

func NewConfigWithConf

func NewConfigWithConf(cf *config.AppConfig) *Config

type Message

type Message struct {
	From    string
	To      []string
	CC      []string
	Subject string
	// text body, html body can only set one
	TextBody string
	// text body, html body can only set one
	HtmlBody string
}

Jump to

Keyboard shortcuts

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