mail

package
v1.1.28 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment added in v1.1.4

type Attachment struct {
	ContentType   string
	Filename      string
	Base64Content string
}

type Mailjet added in v1.1.4

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

func (*Mailjet) GetTemplateHTMLCode added in v1.1.4

func (s *Mailjet) GetTemplateHTMLCode(ormService *beeorm.Engine, templateName string, ttl int) (string, error)

func (*Mailjet) SendTemplate added in v1.1.4

func (s *Mailjet) SendTemplate(ormService *beeorm.Engine, message *Message) error

func (*Mailjet) SendTemplateAsync added in v1.1.4

func (s *Mailjet) SendTemplateAsync(ormService *beeorm.Engine, message *Message) error

func (*Mailjet) SendTemplateWithAttachments added in v1.1.4

func (s *Mailjet) SendTemplateWithAttachments(ormService *beeorm.Engine, message *MessageAttachment) error

func (*Mailjet) SendTemplateWithAttachmentsAsync added in v1.1.4

func (s *Mailjet) SendTemplateWithAttachmentsAsync(ormService *beeorm.Engine, message *MessageAttachment) error

type Mandrill

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

func (*Mandrill) GetTemplateHTMLCode added in v0.8.69

func (s *Mandrill) GetTemplateHTMLCode(ormService *beeorm.Engine, templateName string, ttl int) (string, error)

func (*Mandrill) SendTemplate

func (s *Mandrill) SendTemplate(ormService *beeorm.Engine, message *Message) error

func (*Mandrill) SendTemplateAsync

func (s *Mandrill) SendTemplateAsync(ormService *beeorm.Engine, message *Message) error

func (*Mandrill) SendTemplateWithAttachments

func (s *Mandrill) SendTemplateWithAttachments(ormService *beeorm.Engine, message *MessageAttachment) error

func (*Mandrill) SendTemplateWithAttachmentsAsync

func (s *Mandrill) SendTemplateWithAttachmentsAsync(ormService *beeorm.Engine, message *MessageAttachment) error

type Message

type Message struct {
	From         string
	FromName     string
	ReplyTo      string
	To           string
	Subject      string
	TemplateName string
	TemplateData interface{}
}

type MessageAttachment

type MessageAttachment struct {
	Message
	Attachments []Attachment
}

type NewSenderFunc added in v1.1.4

type NewSenderFunc func(configService config.IConfig) (Sender, error)

type Sender

type Sender interface {
	SendTemplate(ormService *beeorm.Engine, message *Message) error
	SendTemplateAsync(ormService *beeorm.Engine, message *Message) error
	SendTemplateWithAttachments(ormService *beeorm.Engine, message *MessageAttachment) error
	SendTemplateWithAttachmentsAsync(ormService *beeorm.Engine, message *MessageAttachment) error
	GetTemplateHTMLCode(ormService *beeorm.Engine, templateName string, ttl int) (string, error)
}

func NewMailjet added in v1.1.4

func NewMailjet(configService config.IConfig) (Sender, error)

func NewMandrill

func NewMandrill(configService config.IConfig) (Sender, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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