smtp

package
v0.0.0-...-03dd067 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: LGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestMessage

func NewTestMessage(from, to, body string) (string, []byte)

Types

type Conn

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

func Dial

func Dial(ctx context.Context, addr string, conf *tls.Config, startTLS bool, log *log.Logger, dnsMap map[string]string) (*Conn, error)

func (*Conn) Close

func (c *Conn) Close() error

func (*Conn) SendMail

func (c *Conn) SendMail(username, password, from string, to []string, msg []byte) error

Source Files

  • logger.go
  • message.go
  • smtp.go

Jump to

Keyboard shortcuts

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