Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultEmailTemplatePath string = "./email_templates"
)
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(ess model.EmailServiceSettings, fs fs.FS) (model.EmailService, error)
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, subject string, recipient string, data model.EmailData) error
Click to show internal directories.
Click to hide internal directories.