mailer

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email struct {
	Name    string
	Address string
}

type InitOptions

type InitOptions struct {
	RendererEngine renderer.Engine
}

type Mailer

type Mailer interface {
	Init(opts *InitOptions)
	SendFromHTML(html string, opts *SendOptions) error
	SendFromTemplate(template string, opts *SendOptions) error
}

type MailerInstance

type MailerInstance interface {
	SendFromHTML(html string, opts *SendOptions) error
	SendFromTemplate(template string, opts *SendOptions) error
}

func InstanceFromCtx

func InstanceFromCtx(ctx web.Context) MailerInstance

type MailerPlugin

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

func NewMailerPlugin

func NewMailerPlugin(opts Options) *MailerPlugin

func (*MailerPlugin) AppendMiddlewares

func (mp *MailerPlugin) AppendMiddlewares() []web.MiddlewareFunc

func (*MailerPlugin) Instance

func (mp *MailerPlugin) Instance() interface{}

func (*MailerPlugin) Name

func (mp *MailerPlugin) Name() string

func (*MailerPlugin) OnCreated

func (mp *MailerPlugin) OnCreated(z *zepto.Zepto)

func (*MailerPlugin) OnZeptoInit

func (mp *MailerPlugin) OnZeptoInit(z *zepto.Zepto)

func (*MailerPlugin) OnZeptoStart

func (mp *MailerPlugin) OnZeptoStart(z *zepto.Zepto)

func (*MailerPlugin) OnZeptoStop

func (mp *MailerPlugin) OnZeptoStop(z *zepto.Zepto)

func (*MailerPlugin) PrependMiddlewares

func (mp *MailerPlugin) PrependMiddlewares() []web.MiddlewareFunc

type Options

type Options struct {
	Mailer Mailer
}

type SendOptions

type SendOptions struct {
	Subject          string
	From             *Email
	To               []*Email
	PlainTextContent string
	Vars             map[string]interface{}
}

Directories

Path Synopsis
providers
testutils

Jump to

Keyboard shortcuts

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