Files
2025-08-10 22:29:06 +08:00

30 lines
506 B
Go

package mailx
import (
"code.yun.ink/pkg/mailx/aliyun"
"code.yun.ink/pkg/mailx/aws"
"code.yun.ink/pkg/mailx/interfaces"
"code.yun.ink/pkg/mailx/mailgun"
"code.yun.ink/pkg/mailx/smtp"
)
var Platform interfaces.EmailFactoryInterface
// 注册
func init() {
Platform = interfaces.NewDefaultEmailFactory()
// 阿里
Platform.Register(aliyun.NewAliyun())
// AWS
Platform.Register(aws.NewAws())
// Smtp
Platform.Register(smtp.NewSmtp())
// mailgun
Platform.Register(mailgun.NewMailGun())
}