mail

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 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) BeforeInject added in v0.0.33

func (c *Config) BeforeInject()

func (*Config) Build

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

func (*Config) Init

func (c *Config) Init()

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