mail

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 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 Config

type Config struct {
	AuthType string `comment:"CRAMMD5,PLAIN"`
	Identity string
	Host     string
	Port     string
	UserName string
	Password string
	From     string
}

func (*Config) Build

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

func (*Config) Init

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

func (m *Mail) Init() error

Jump to

Keyboard shortcuts

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