email

package
v0.0.0-...-984e724 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	service.Service

	Send(to string, subject, body string) error
}

type Smtp

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

func NewSmtp

func NewSmtp(config SmtpConfig) *Smtp

func (*Smtp) Dependencies

func (s *Smtp) Dependencies() []service.Service

func (*Smtp) Name

func (s *Smtp) Name() string

func (*Smtp) Send

func (s *Smtp) Send(to string, subject, body string) error

func (*Smtp) Start

func (s *Smtp) Start() error

func (*Smtp) Stop

func (s *Smtp) Stop() error

type SmtpConfig

type SmtpConfig struct {
	Disabled  bool
	Address   string
	Port      int
	User      string
	Password  string
	FromEmail string
}

Jump to

Keyboard shortcuts

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