Documentation
¶
Overview ¶
CLAUDE:SUMMARY Shared SMTP mail service: STARTTLS + LOGIN auth (OVH), password reset, verification emails. CLAUDE:DEPENDS log/slog, net/smtp, crypto/tls CLAUDE:EXPORTS Config, Service, NewService
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Host string
Port string
Username string
Password string
From string
AppName string // Used in email subjects/bodies (e.g. "SiftRAG", "repvow")
}
Config holds SMTP connection parameters.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service sends emails via SMTP with STARTTLS and LOGIN auth.
func NewService ¶
NewService creates a mail service. If Host is empty, the service is disabled and Send calls will log a warning and return nil.
func (*Service) SendPasswordReset ¶
SendPasswordReset sends a password reset email with a tokenized link.
func (*Service) SendVerification ¶
SendVerification sends an email verification link.
Click to show internal directories.
Click to hide internal directories.