mail

package
v1.0.79 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mandrill

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

func NewMandrill

func NewMandrill(apiKey, defaultFromEmail, fromName string) *Mandrill

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 []gochimp.Attachment
}

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)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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