smtpserver

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitSmtp

func InitSmtp() (err error)

func LoginAuth

func LoginAuth(username, password string) smtp.Auth

func Send

func Send(subject string, msg string) error

func SendSshBanned

func SendSshBanned(ip string, to string, reason string)

func SendSshSuccess

func SendSshSuccess(ip string, to string, mark string)

func SendStart

func SendStart()

func SendStop

func SendStop(exitcode int, numGoroutine int)

func SendTcpNotAccept

func SendTcpNotAccept()

func SendTcpReAccept

func SendTcpReAccept()

func SendTcpStopAccept

func SendTcpStopAccept()

func SendWaitStop

func SendWaitStop(reason string)

Types

type Message

type Message struct {
	Info string // Message information for log purpose.
	*gomail.Message
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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