Help us shape the future of Go! Take the 2026 Go Developer Survey

mail

package
v0.8.56 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: MIT 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) 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
	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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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