smtp

package
v1.87.5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

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

func InitSMTPChannel

func InitSMTPChannel(config EmailConfig) (*Email, error)

func (*Email) HandleMessage

func (email *Email) HandleMessage(message channels.Message) error

type EmailConfig

type EmailConfig struct {
	SMTP     SMTP
	Tls      bool
	From     string
	FromName string
}

type SMTP

type SMTP struct {
	Host     string
	User     string
	Password string
}

func (*SMTP) HasAuth

func (smtp *SMTP) HasAuth() bool

Jump to

Keyboard shortcuts

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