email

package
v1.2.20 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NoIdentity = ""
)

Functions

This section is empty.

Types

type SMTPAuthConfig

type SMTPAuthConfig struct {
	Username string
	Password string
	Host     string
	Port     int

	// +optional
	ClientAddr string
}

type SMTPSender

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

func NewSMTPSender

func NewSMTPSender(config SMTPAuthConfig) *SMTPSender

func (*SMTPSender) Alone

func (s *SMTPSender) Alone() error

Alone send single email for distinct service

func (*SMTPSender) Group

func (s *SMTPSender) Group() error

Group send group email by goroutine

func (*SMTPSender) WithMessage

func (s *SMTPSender) WithMessage(msg []byte) *SMTPSender

func (*SMTPSender) WithReceiver

func (s *SMTPSender) WithReceiver(addr ...string) *SMTPSender

Jump to

Keyboard shortcuts

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