smtp

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Host  string
	Port  string
	Pass  string
	Debug bool
}

func Client

func Client(host, port, password string) *Auth

func (*Auth) SendHTML

func (s *Auth) SendHTML(
	from string,
	to []string,
	subject string,
	html string,
	attachments map[string]*bytes.Buffer,
) error

func (*Auth) SendText

func (s *Auth) SendText(
	from string,
	to []string,
	subject string,
	body string,
	attachments map[string]*bytes.Buffer,
) error

func (*Auth) Validate

func (s *Auth) Validate(user string) error

Jump to

Keyboard shortcuts

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