email

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: Apache-2.0 Imports: 10 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 InitEmailProvider

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

func (*Email) CanHandleMessage

func (email *Email) CanHandleMessage(message providers.Message) bool

func (*Email) HandleMessage

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

type EmailConfig

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

type EmailMessage

type EmailMessage struct {
	Recipients  []string
	BCC         []string
	CC          []string
	SenderEmail string
	Subject     string
	Content     string
}

func (*EmailMessage) GetContent

func (msg *EmailMessage) GetContent() 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