master
Evan Chen 2022-01-09 05:33:17 +08:00
parent e7c12c603b
commit 360501f9d9
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import (
"strings"
"github.com/gin-gonic/gin"
"github.com/spf13/viper"
"kumoly.io/kumoly/app/auth"
"kumoly.io/kumoly/app/email"
"kumoly.io/kumoly/app/errors"
@ -46,7 +47,7 @@ func (srv Service) Load() error {
panic(errors.ErrorBadRequest)
}
to := strings.Split(tos, ",")
if err := email.Send("test@kumoly.io", to, "Test Email", &email.Body{
if err := email.Send(viper.GetString("email.username"), to, "Test Email", &email.Body{
Greeting: "Dear",
Receiver: "Administrator",
Intros: []string{