feat: channel email is done

This commit is contained in:
JustSong
2022-11-11 17:24:03 +08:00
parent f1d5d9c8d1
commit e1d09aa58f
15 changed files with 196 additions and 67 deletions
+3 -2
View File
@@ -75,6 +75,7 @@ var (
var RateLimitKeyExpirationDuration = 20 * time.Minute
const (
UserStatusEnabled = 1 // don't use 0, 0 is the default value!
UserStatusDisabled = 2 // also don't use 0
UserStatusNonExisted = 0
UserStatusEnabled = 1 // don't use 0, 0 is the default value!
UserStatusDisabled = 2 // also don't use 0
)
+3 -1
View File
@@ -1,6 +1,8 @@
package common
import "gopkg.in/gomail.v2"
import (
"gopkg.in/gomail.v2"
)
func SendEmail(subject string, receiver string, content string) error {
m := gomail.NewMessage()