mail

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSmtpClient added in v1.4.0

func GetSmtpClient() *smtp.Client

GetSmtpClient 获取smtp客户端

Types

type SmtpClient

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

func NewSmtpClient

func NewSmtpClient(client *smtp.Client, addr string, username, password, from string) *SmtpClient

func (*SmtpClient) Close

func (m *SmtpClient) Close()

func (*SmtpClient) GetClient

func (m *SmtpClient) GetClient() *smtp.Client

GetClient 暴露原生client

func (*SmtpClient) Send

func (m *SmtpClient) Send(addresses []string, body []byte) error

func (*SmtpClient) Setup

func (m *SmtpClient) Setup() error

func (*SmtpClient) String

func (*SmtpClient) String() string

Jump to

Keyboard shortcuts

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