Initial commit: Open sourcing all of the Maple Open Technologies code.
This commit is contained in:
commit
755d54a99d
2010 changed files with 448675 additions and 0 deletions
|
|
@ -0,0 +1,21 @@
|
|||
// 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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue