Documentation
¶
Overview ¶
Package email is a minimal SMTP sender for the in-app auth flows (magic-link, email verification, password reset, invites). It speaks explicit STARTTLS to the configured server (e.g. smtp.gmail.com:587) using an app password from the environment, so the credential never crosses the wire in cleartext. It satisfies auth.Mailer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
Sender holds SMTP configuration. The zero value (no host) is !Configured(), so email methods disable cleanly when SMTP isn't set up.
func (*Sender) Configured ¶
Configured reports whether enough is set to send mail.
Click to show internal directories.
Click to hide internal directories.