Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶ added in v0.104.0
type Client struct {
// contains filtered or unexported fields
}
Client is an SMTP client
func NewClientFromURL ¶ added in v0.104.0
NewClientFromURL creates a client from a URL like smtp://user:pass@host:port/?from=from@example.com
type Message ¶ added in v0.104.0
type Message struct {
// contains filtered or unexported fields
}
Message is email message
func NewMessage ¶ added in v0.104.0
NewMessage creates a new message
type MockSender ¶
type MockSender struct {
// contains filtered or unexported fields
}
MockSender is a mocked sender for testing that just logs would-be commands
func NewMockSender ¶
func NewMockSender(err string) *MockSender
NewMockSender creates a new mock sender
Click to show internal directories.
Click to hide internal directories.