Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PreviewHandler ¶
PreviewHandler shows sent emails in development mode
Types ¶
type DevSender ¶
type DevSender struct {
// contains filtered or unexported fields
}
DevSender logs emails instead of sending them (for development)
func (*DevSender) GetMessages ¶
GetMessages returns stored messages (for preview)
type Message ¶
type Message struct {
From string // Optional, uses default if empty
To string // Required recipient email
Cc []string // Optional CC recipients
Bcc []string // Optional BCC recipients
Subject string // Email subject
Text string // Plain text body
HTML string // HTML body (optional)
}
Message represents an email message
type SMTPConfig ¶
type SMTPConfig struct {
Addr string // Host:port (e.g., "smtp.gmail.com:587")
User string // SMTP username
Password string // SMTP password
From string // Default sender email
}
SMTPConfig holds SMTP server configuration
type SMTPSender ¶
type SMTPSender struct {
// contains filtered or unexported fields
}
SMTPSender sends emails via SMTP
func NewSMTPSender ¶
func NewSMTPSender(config SMTPConfig) *SMTPSender
NewSMTPSender creates a new SMTP sender
Click to show internal directories.
Click to hide internal directories.