mail

package
v0.0.0-...-cc72008 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter interface {
	// SendMail 包含三个参数:
	// to 接收方地址
	// text 邮件内容
	// subject 邮件主题
	SendMail(types.M) error
}

Adapter ...

type SMTPMailAdapter

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

SMTPMailAdapter ...

func NewSMTPAdapter

func NewSMTPAdapter() *SMTPMailAdapter

NewSMTPAdapter ...

func (*SMTPMailAdapter) SendMail

func (s *SMTPMailAdapter) SendMail(object types.M) error

SendMail ...

Jump to

Keyboard shortcuts

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