Documentation
¶
Overview ¶
Package email provides email sending functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
From Email
To Email
Subject string
Template string
Content any
// contains filtered or unexported fields
}
Message struct holds all parts of a specific email Message.
type MockMailer ¶
MockMailer is a mock Mailer
func NewMockMailer ¶
func NewMockMailer() *MockMailer
func (*MockMailer) Send ¶
func (s *MockMailer) Send(m Message) error
type SMTPMailer ¶
type SMTPMailer struct {
// contains filtered or unexported fields
}
SMTPMailer is a SMTP mailer.
func (*SMTPMailer) Send ¶
func (m *SMTPMailer) Send(email Message) error
Send sends the mail via smtp.
Click to show internal directories.
Click to hide internal directories.