gomail_sender

package
v0.0.0-...-8122643 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GomailSender

type GomailSender struct {
	GomailSenderConfig
	// contains filtered or unexported fields
}

func New

func New() *GomailSender

func (*GomailSender) Config

func (g *GomailSender) Config() interface{}

func (*GomailSender) Init

func (g *GomailSender) Init(app app_context.Context, configPath ...string) error

func (*GomailSender) Send

func (g *GomailSender) Send(ctx op_context.Context, to string, subject string, contents ...email_sender.EmailContent) error

type GomailSenderConfig

type GomailSenderConfig struct {
	HOST         string `validate:"required" vmessage:"Gomail client host must be specified"`
	PORT         uint16 `validate:"required" vmessage:"Gomail client port must be specified"`
	USER         string `validate:"required"  vmessage:"Gomail client user must be specified"`
	PASSWORD     string `validate:"required"  vmessage:"Gomail client password must be specified"`
	FROM_ADDRESS string
	FROM_NAME    string
}

Jump to

Keyboard shortcuts

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