email

package
v1.3.13 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

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

func New

func New(opts ...Option) *Email

func (*Email) Init

func (e *Email) Init()

func (*Email) Provide

func (e *Email) Provide(ctx context.Context) interface{}

func (*Email) Send

func (e *Email) Send(msg ...*gomail.Message) error

type Option

type Option func(*Options)

func WithFrom

func WithFrom(from string) Option

func WithPort

func WithPort(port int) Option

func WithPwd

func WithPwd(pwd string) Option

func WithSMTPServer added in v1.3.13

func WithSMTPServer(smtpServer string) Option

func WithUser added in v1.3.13

func WithUser(user string) Option

type Options

type Options struct {
	SMTPServer string
	Port       int
	User       string
	Pwd        string
	From       string
}

Jump to

Keyboard shortcuts

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