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 (*Client) TestConnection ¶
TestConnection dials the SMTP server, upgrades to TLS when offered, and authenticates, without sending any mail, to verify the configured host/port/credentials work. The dial honors ctx cancellation, and — when ctx carries a deadline — the whole handshake (STARTTLS/Auth included) is bounded by it, so a host that never responds fails once ctx expires instead of hanging indefinitely.
Click to show internal directories.
Click to hide internal directories.