emailer

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	Name string
	Data []byte
}

type Emailer

type Emailer interface {
	Send(toName string, to string, subject string, content string, attachments []Attachment) error
}

type SendgridApiMail

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

func NewSendgridApiMail

func NewSendgridApiMail(apiKey, fromName, from string) *SendgridApiMail

func (*SendgridApiMail) Send

func (o *SendgridApiMail) Send(toName string, to string, subject string, content string, attachments []Attachment) error

Jump to

Keyboard shortcuts

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