email

package
v0.0.0-...-0e73c6a Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 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 ChannelEmailImpl

type ChannelEmailImpl struct {
	Config
	// contains filtered or unexported fields
}

func NewEmailChannel

func NewEmailChannel(cfg Config) *ChannelEmailImpl

func (*ChannelEmailImpl) Execute

func (c *ChannelEmailImpl) Execute(ctx context.Context, deli notifier.Delivery) error

func (*ChannelEmailImpl) Name

func (c *ChannelEmailImpl) Name() string

type Config

type Config struct {
	SmtpHostAddr  string `json:"smtp_host_addr"`
	SmtpUserName  string `json:"smtp_user_name"`
	SmtpPwd       string `json:"smtp_pwd"`
	SenderAddress string `json:"sender_address"` // e.g. Hooko <xxx.xx@xx>
}

type Content

type Content struct {
	Subject string
	Cc      []string
	Html    string
	Text    string
}

Jump to

Keyboard shortcuts

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