mail

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: MIT Imports: 3 Imported by: 0

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, error)

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) Init added in v1.5.11

func (m *Mail) Init() error

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