smtp

package
v0.0.0-...-860e413 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 9 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(ctx context.Context, getSMTPConfig func(ctx context.Context) (*EmailConfig, error)) (*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