smtpclient

package
v0.0.0-...-b911aa2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mail

type Mail interface {
	Sender() string
	Recipients() []string
	Data() []byte
}

type SensibleSMTPClient

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

func NewSensibleSMTPClient

func NewSensibleSMTPClient(hostname string, options ...SensibleSMTPClientOptionFunc) (*SensibleSMTPClient, error)

func (*SensibleSMTPClient) SendMails

func (client *SensibleSMTPClient) SendMails(ctx context.Context, domain string, mails []Mail) error

type SensibleSMTPClientOptionFunc

type SensibleSMTPClientOptionFunc func(*SensibleSMTPClient) (*SensibleSMTPClient, error)

func WithConnTimeout

func WithConnTimeout(timeout time.Duration) SensibleSMTPClientOptionFunc

func WithImplicitTLSEnabled

func WithImplicitTLSEnabled(enabled bool) SensibleSMTPClientOptionFunc

func WithLogger

func WithLogger(logger *slog.Logger) SensibleSMTPClientOptionFunc

func WithNextHop

func WithNextHop(nextHop string) SensibleSMTPClientOptionFunc

func WithNextHopImplicitTLS

func WithNextHopImplicitTLS(enabled bool) SensibleSMTPClientOptionFunc

func WithPorts

func WithPorts(ports ...int) SensibleSMTPClientOptionFunc

func WithResolutionRetryCount

func WithResolutionRetryCount(count int) SensibleSMTPClientOptionFunc

func WithResolutionRetryInterval

func WithResolutionRetryInterval(interval time.Duration) SensibleSMTPClientOptionFunc

func WithResolver

func WithResolver(resolver spf.DNSResolver) SensibleSMTPClientOptionFunc

func WithTLSConfig

func WithTLSConfig(config *tls.Config) SensibleSMTPClientOptionFunc

Jump to

Keyboard shortcuts

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