email

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoEmail

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

func NewGoEmail

func NewGoEmail(host string, port int, username string, password string) *GoEmail

func (*GoEmail) Body

func (t *GoEmail) Body(title, name, link string) error

func (*GoEmail) Date

func (t *GoEmail) Date()

func (*GoEmail) From

func (t *GoEmail) From(from string)

func (*GoEmail) Send

func (t *GoEmail) Send() error

func (*GoEmail) Subject

func (t *GoEmail) Subject(subject string)

func (*GoEmail) To

func (t *GoEmail) To(to string)

type IEmail

type IEmail interface {
	From(from string)
	To(to string)
	Subject(subject string)
	Body(title, name, link string) error
	Send() error
}

func NewEmail

func NewEmail(ctx context.Context, keys ...string) (IEmail, error)

type SendGrid

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

func NewSendGrid

func NewSendGrid(ctx context.Context, apiKey string) *SendGrid

func (*SendGrid) Body

func (t *SendGrid) Body(title, name, link string) error

func (*SendGrid) From

func (t *SendGrid) From(from string)

func (*SendGrid) Send

func (t *SendGrid) Send() error

func (*SendGrid) Subject

func (t *SendGrid) Subject(subject string)

func (*SendGrid) To

func (t *SendGrid) To(to string)

Jump to

Keyboard shortcuts

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