Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTransport ¶
func NewTransport(logger *slog.Logger) model.EmailTransport
NewTransport creates new email mock transport, all it does just prints everything to console.
Types ¶
type EmailService ¶ added in v2.3.0
type EmailService struct {
// contains filtered or unexported fields
}
func (*EmailService) Messages ¶ added in v2.3.0
func (es *EmailService) Messages() []string
func (*EmailService) SendHTML ¶ added in v2.3.0
func (es *EmailService) SendHTML(subject, html, recipient string) error
SendHTML returns nil error.
func (*EmailService) SendMessage ¶ added in v2.3.0
func (es *EmailService) SendMessage(subject, body, recipient string) error
SendMessage returns nil error.
Click to show internal directories.
Click to hide internal directories.