feat: 0.0.1
This commit is contained in:
146 files changed
+10444
No files matched your search
@@ -0,0 +1,23 @@
|
||||
// Package mailer provides functionalities for sending emails using predefined templates.
|
||||
package mailer
|
||||
|
||||
import "embed"
|
||||
|
||||
//go:embed "templates"
|
||||
var FS embed.FS
|
||||
|
||||
const (
|
||||
UserWelcomeTemplate = "user_activation.tmpl"
|
||||
TestEmailTemplate = "test_email.tmpl"
|
||||
)
|
||||
|
||||
type MailSender interface {
|
||||
Send(
|
||||
mailTemplate string,
|
||||
vars any,
|
||||
to []string,
|
||||
cc []string,
|
||||
bcc []string,
|
||||
attachFiles []string,
|
||||
) error
|
||||
}
|
||||
Reference in new issue
Block a user