mail

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRAMMD5Auth

type CRAMMD5Auth struct {
	UserName string
	Secret   string
}

type Config

type Config struct {
	AuthType    string `comment:"CRAMMD5Auth,PLAINAuth"`
	PlainAuth   PlainAuth
	CRAMMD5Auth CRAMMD5Auth
}

func (*Config) Build

func (c *Config) Build() smtp.Auth

func (*Config) Init added in v1.4.0

func (c *Config) Init()

func (*Config) InitBeforeInject

func (c *Config) InitBeforeInject()

type Mail

type Mail struct {
	smtp.Auth
	Conf Config
}

func (*Mail) Close

func (m *Mail) Close() error

func (*Mail) Config

func (m *Mail) Config() any

func (*Mail) SetEntity

func (m *Mail) SetEntity()

type PlainAuth

type PlainAuth struct {
	Identity string
	Host     string
	Port     string
	From     string
	Password string
}

Jump to

Keyboard shortcuts

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