mail

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(config Config)

func InitTestApi

func InitTestApi()

func Send

func Send(mailTo []string, subject, body string) error

func Test

func Test() error

Types

type Config

type Config struct {
	MailAccount  string
	MailPassword string
	MailServer   string
	MailPort     string
	MailFrom     string
}

type Mail

type Mail struct {
	sync.Mutex
	Account     string
	Password    string
	From        string
	Server      string
	Port        string
	MailTo      []string
	SubJect     string
	Body        string
	Reader      io.Reader
	Filename    string
	ContentType string
}

func (*Mail) Send

func (m *Mail) Send() error

Jump to

Keyboard shortcuts

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