Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CredentialExpiryParams ¶
type PassengerCurrencyParams ¶
type RatingExpiryParams ¶
type RevalidationParams ¶
type SMTPConfig ¶
SMTPConfig holds SMTP server configuration
func LoadSMTPConfig ¶
func LoadSMTPConfig() *SMTPConfig
LoadSMTPConfig loads SMTP configuration from environment variables
func (*SMTPConfig) IsConfigured ¶
func (c *SMTPConfig) IsConfigured() bool
IsConfigured returns true if SMTP is properly configured
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
Sender sends emails via SMTP
func NewSender ¶
func NewSender(config *SMTPConfig) *Sender
NewSender creates a new SMTP email sender
func (*Sender) Send ¶
Send sends an email.
Both `to` and the configured `From` address are parsed with net/mail.ParseAddress, which validates the address syntax and rejects CR/LF and other characters that could be used to inject additional headers (CWE-640). The subject is MIME Q-encoded so any non-ASCII or control bytes are escaped and cannot break out of the Subject header.
type VerifyEmailParams ¶ added in v1.2.5
Click to show internal directories.
Click to hide internal directories.