mail

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 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

func (*Config) InitAfterInject

func (c *Config) InitAfterInject()

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