mailx

package
v1.3.90 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendMailHtml

func SendMailHtml(t MailType, title, body string) error

func SendMailHtmlWithAttach

func SendMailHtmlWithAttach(nt MailType, title, body string, attachFiles []string) error

Types

type MailContext

type MailContext struct {
	UserFrom       string
	UserAuth       string
	Password       string
	MailListReport []string
	MailListAlarm  []string
	MailListDev    []string
	Identify       string
	SmtpPort       string
	SmtpHost       string
}

func InitMailContext

func InitMailContext(userFrom, userAuth, password, identify, smtpHost, smtpPort string, mailListReport, mailListAlarm, mailListDev []string) *MailContext

func NewMailContext

func NewMailContext(a MailContext) *MailContext

func (*MailContext) GetSendTo

func (mc *MailContext) GetSendTo(c MailType, n string) []string

type MailType

type MailType int
const (
	MailClassReport MailType = iota
	MailClassAlarm
)

type NodeNamePrefix

type NodeNamePrefix string
const (
	NodeNamePrefixPub NodeNamePrefix = "p"
	NodeNamePrefixDev NodeNamePrefix = "d"
)

Jump to

Keyboard shortcuts

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