email

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name ...
	Name = "email"
	// AttrAuth ...
	AttrAuth = "auth"
	// AttrPass ...
	AttrPass = "pass"
	// AttrSmtp ...
	AttrSmtp = "smtp"
	// AttrPort ...
	AttrPort = "port"
	// AttrSender ...
	AttrSender = "sender"

	// AttrAddresses ...
	AttrAddresses = "addresses"
	// AttrSubject ...
	AttrSubject = "subject"
	// AttrBody ...
	AttrBody = "body"

	Version = "0.0.1"
)

Variables

This section is empty.

Functions

func New

func New() supervisor.Pluggable

New ...

func NewMessageParams

func NewMessageParams() m.Attributes

NewMessageParams ...

func NewSettings

func NewSettings() m.Attributes

NewSettings ...

Types

type Actor

type Actor struct {
	supervisor.BaseActor

	Auth   string
	Pass   string
	Smtp   string
	Port   int64
	Sender string
	// contains filtered or unexported fields
}

Actor ...

func NewActor

func NewActor(entity *m.Entity,
	service supervisor.Service) *Actor

NewActor ...

func (*Actor) Destroy added in v0.12.0

func (e *Actor) Destroy()

func (*Actor) MessageParams added in v0.12.0

func (e *Actor) MessageParams() m.Attributes

MessageParams ...

func (*Actor) Save added in v0.12.0

func (e *Actor) Save(msg notify.Message) (addresses []string, message *m.Message)

Save ...

func (*Actor) Send

func (e *Actor) Send(address string, message *m.Message) error

Send ...

func (*Actor) Spawn

func (e *Actor) Spawn()

Spawn ...

func (*Actor) UpdateStatus

func (e *Actor) UpdateStatus() (err error)

UpdateStatus ...

Jump to

Keyboard shortcuts

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