emailer

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 8 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

type SmtpMail added in v0.3.6

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

func NewSmtpMail added in v0.3.6

func NewSmtpMail(hostname string, port int, username string, password string, SmtpHelo string, noTLSCheck bool, auth string, fromName, from string, encryption string) *SmtpMail

func (*SmtpMail) Send added in v0.3.6

func (o *SmtpMail) 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