Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config holds SMTP configuration
func ConfigFromEnv ¶
func ConfigFromEnv() Config
ConfigFromEnv creates a Config from environment variables
type SMTPSender ¶
type SMTPSender struct {
// contains filtered or unexported fields
}
SMTPSender implements the Sender interface using SMTP
func NewSMTPSender ¶
func NewSMTPSender(config Config) *SMTPSender
NewSMTPSender creates a new SMTP sender
func (*SMTPSender) Send ¶
func (s *SMTPSender) Send(recipient, subject, body string) error
Send sends an email via SMTP
Click to show internal directories.
Click to hide internal directories.