email

package
v0.0.2-rc-ci Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDisallowedEmail = fmt.Errorf("email is not in allow list")

Functions

This section is empty.

Types

type Config

type Config struct {
	SMTPHost     string
	SMTPPassword string
	Mail         string
	DisableTLS   bool
	AllowList    []string
}

Config is used to configure the email service.

type Service

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

func NewService

func NewService(config Config) *Service

func (*Service) Send

func (s *Service) Send(email, subject, body string) error

Jump to

Keyboard shortcuts

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