Documentation ¶ Index ¶ func NewMessage() *mail.Msg func SendMessage(ctx context.Context, config Config, dkimConfig dnsdkim.Config, msg *mail.Msg) error type Config func NewConfig(hostname string, waveConfig wave.ClientConfig, dnsConfig DNSConfig) Config type DNSConfig func NewDNSConfig(dnsServers ...string) DNSConfig 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. Source Files ¶ View all Source files config.gomailing.go Click to show internal directories. Click to hide internal directories.