21 lines
688 B
Go
21 lines
688 B
Go
// File Path: monorepo/cloud/maplefile-backend/pkg/emailer/mailgun/maplefilemailgun.go
|
|
package mailgun
|
|
|
|
import (
|
|
"codeberg.org/mapleopentech/monorepo/cloud/maplefile-backend/config"
|
|
)
|
|
|
|
// NewMapleFileModuleEmailer creates a new emailer for the MapleFile standalone module.
|
|
func NewMapleFileModuleEmailer(cfg *config.Configuration) Emailer {
|
|
emailerConfigProvider := NewMailgunConfigurationProvider(
|
|
cfg.Mailgun.SenderEmail,
|
|
cfg.Mailgun.Domain,
|
|
cfg.Mailgun.APIBase,
|
|
cfg.Mailgun.SenderEmail, // Use sender email as maintenance email
|
|
cfg.Mailgun.FrontendURL,
|
|
"", // Backend domain not needed for standalone
|
|
cfg.Mailgun.APIKey,
|
|
)
|
|
|
|
return NewEmailer(emailerConfigProvider)
|
|
}
|