mailx

package
v1.3.69 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MIT Imports: 4 Imported by: 0

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