mailutil

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(conf Config)

func Send

func Send(subject, to, body string) error

Types

type Config

type Config struct {
	Host     string `yaml:"host"`
	Sender   string `yaml:"sender"`
	Username string `yaml:"username"`
	Password string `yaml:"password"`
}

type Mail

type Mail struct {
	// contains filtered or unexported fields
}

func NewMail

func NewMail(conf Config) (*Mail, error)

func (*Mail) Send

func (m *Mail) Send(subject, to, body string) error

Jump to

Keyboard shortcuts

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