mail

package
v0.0.0-...-f6b76fc Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gomail

type Gomail interface {
	SendEmail(request *SendEmail) error
	GetFromEmail() string
}

type ImplGomail

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

func NewGomail

func NewGomail(client *gomail.Dialer, fromEmail string) *ImplGomail

func (*ImplGomail) GetFromEmail

func (g *ImplGomail) GetFromEmail() string

func (*ImplGomail) SendEmail

func (g *ImplGomail) SendEmail(request *SendEmail) error

type SendEmail

type SendEmail struct {
	EmailFrom string
	EmailTo   string
	Subject   string
	Body      bytes.Buffer
}

Jump to

Keyboard shortcuts

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