Help us shape the future of Go! Take the 2026 Go Developer Survey

smtp

package
v0.4.30 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(config *Config) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) RawClient added in v0.4.22

func (c *Client) RawClient() *mail.Client

func (*Client) Send

func (c *Client) Send(ctx context.Context, msg *Message) error

type Config

type Config struct {
	Host          string
	Port          int
	Username      string
	Password      string
	UseSsl        bool
	SkipTlsVerify bool
}

func NewDefaultConfig

func NewDefaultConfig() *Config

type MIMEType

type MIMEType = mail.ContentType
const (
	MIMETypeTextHTML  MIMEType = mail.TypeTextHTML
	MIMETypeTextPlain MIMEType = mail.TypeTextPlain
)

type Message

type Message = mail.Msg

func NewMessage

func NewMessage() *Message

Jump to

Keyboard shortcuts

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