mail

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoginAuth

func LoginAuth(username, password string) smtp.Auth

Types

type Mail

type Mail struct {
	scrape.Collector
	From     string
	Passwd   string
	To       []string
	SMTPHost string
	SMTPPort int
}

func New

func New() *Mail

func (*Mail) Run

func (m *Mail) Run()

func (*Mail) Send

func (m *Mail) Send(title, content string)

Jump to

Keyboard shortcuts

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