mailutil

package
v1.3.5-alpha0802 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SMTPConfig

type SMTPConfig struct {
	Server     string
	Port       int
	ConnectSSL bool

	// empty is for common case
	Identify string

	Username string
	Password string

	From string
}

func (*SMTPConfig) GetSMTPMailSender

func (c *SMTPConfig) GetSMTPMailSender() *SMTPMailSender

type SMTPMailSender

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

func NewSMTPMailSender

func NewSMTPMailSender(c *SMTPConfig) (*SMTPMailSender, error)

func (*SMTPMailSender) GetAuthClient

func (s *SMTPMailSender) GetAuthClient(ctx context.Context) (net.Conn, *smtp.Client, error)

func (*SMTPMailSender) IsAvailable

func (s *SMTPMailSender) IsAvailable(ctx context.Context) (bool, string)

func (*SMTPMailSender) SendWithContext

func (s *SMTPMailSender) SendWithContext(ctx context.Context, toWho string, msg *gomail.Message, cc ...string) error

Jump to

Keyboard shortcuts

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