emailhandler

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, m map[string]any) (handler.Handler, error)

New returns a new email handler.

Types

type EmailHandler

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

EmailHandler is the notification handler for emails.

func (*EmailHandler) Send

func (e *EmailHandler) Send(sender, recipient, subject, body string) error

Send is the method run when a notification is triggered for this handler.

Jump to

Keyboard shortcuts

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