mailing

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMessage

func NewMessage() *mail.Msg

NewMessage creates new email message builder.

func SendMessage

func SendMessage(ctx context.Context, config Config, dkimConfig dnsdkim.Config, msg *mail.Msg) error

SendMessage sends message.

Types

type Config

type Config struct {
	Hostname string
	Resolver *net.Resolver
	Wave     wave.ClientConfig
}

Config is the maling config.

func NewConfig

func NewConfig(hostname string, waveConfig wave.ClientConfig, dnsConfig DNSConfig) Config

NewConfig creates new mailing config.

type DNSConfig

type DNSConfig struct {
	Servers []string
}

DNSConfig is the DNS config of mailing.

func NewDNSConfig

func NewDNSConfig(dnsServers ...string) DNSConfig

NewDNSConfig creates new DNS config for mailing.

Jump to

Keyboard shortcuts

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