Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailMessenger ¶
type EmailMessenger struct {
// contains filtered or unexported fields
}
EmailMessenger sends emails using an SMTP connection pool
func NewEmailMessenger ¶
func NewEmailMessenger(cfg config.SMTPConfig, logger *slog.Logger) (*EmailMessenger, error)
NewEmailMessenger creates a new EmailMessenger with the given SMTP configuration
func (*EmailMessenger) Close ¶
func (e *EmailMessenger) Close()
Close closes the SMTP connection pool
func (*EmailMessenger) Send ¶
func (e *EmailMessenger) Send(msg Message) error
Send sends an email message to all recipients
Click to show internal directories.
Click to hide internal directories.