email

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: GPL-3.0 Imports: 15 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"
)

Variables

This section is empty.

Functions

func New

func New() plugins.Plugable

New ...

func NewMessageParams

func NewMessageParams() m.Attributes

NewMessageParams ...

func NewSettings

func NewSettings() map[string]*m.Attribute

NewSettings ...

Types

type Actor

type Actor struct {
	entity_manager.BaseActor

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

Actor ...

func NewActor

func NewActor(settings m.Attributes,
	entityManager entity_manager.EntityManager,
	eventBus bus.Bus,
	adaptors *adaptors.Adaptors) *Actor

NewActor ...

func (*Actor) Send

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

Send ...

func (*Actor) Spawn

func (p *Actor) Spawn() entity_manager.PluginActor

Spawn ...

func (*Actor) UpdateStatus

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

UpdateStatus ...

Jump to

Keyboard shortcuts

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