Documentation ¶
Index ¶
- Constants
- func NewService(logger *slog.Logger, ess model.EmailServiceSettings, fs fs.FS, ...) (model.EmailService, error)
- type EmailService
- func (es *EmailService) SendHTML(subject, html, recipient string) error
- func (es *EmailService) SendMessage(subject, body, recipient string) error
- func (es *EmailService) SendTemplateEmail(emailType model.EmailTemplateType, subfolder, subject string, recipient string, ...) error
- func (es *EmailService) Start()
- func (es *EmailService) Stop()
- func (es *EmailService) Transport() model.EmailTransport
Constants ¶
View Source
const (
DefaultEmailTemplatePath string = "./email_templates"
)
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
Types ¶
type EmailService ¶
type EmailService struct {
// contains filtered or unexported fields
}
func (*EmailService) SendHTML ¶
func (es *EmailService) SendHTML(subject, html, recipient string) error
func (*EmailService) SendMessage ¶
func (es *EmailService) SendMessage(subject, body, recipient string) error
proxy to underlying service
func (*EmailService) SendTemplateEmail ¶
func (es *EmailService) SendTemplateEmail(emailType model.EmailTemplateType, subfolder, subject string, recipient string, data model.EmailData) error
func (*EmailService) Start ¶ added in v2.3.0
func (es *EmailService) Start()
func (*EmailService) Stop ¶ added in v2.3.0
func (es *EmailService) Stop()
func (*EmailService) Transport ¶ added in v2.3.0
func (es *EmailService) Transport() model.EmailTransport
Click to show internal directories.
Click to hide internal directories.