mailer

package
v0.0.0-...-c817481 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDirect

func NewDirect(from string) gateway.Mailer

func NewLogger

func NewLogger() gateway.Mailer

func NewSMTP

func NewSMTP(host, port, username, email, password string) gateway.Mailer

func NewSendGrid

func NewSendGrid(senderName, senderEmail, api string) gateway.Mailer

Types

type Mail

type Mail struct {
	To           []gateway.Contact
	Subject      string
	PlainContent string
	HTMLContent  string
}

type Mock

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

func NewMock

func NewMock() *Mock

func (*Mock) Mails

func (m *Mock) Mails() []Mail

func (*Mock) SendMail

func (m *Mock) SendMail(to []gateway.Contact, subject, text, html string) error

type ToList

type ToList []gateway.Contact

func (ToList) String

func (l ToList) String() string

Jump to

Keyboard shortcuts

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