diff --git a/control/service.go b/control/service.go index e774435..13b17e9 100644 --- a/control/service.go +++ b/control/service.go @@ -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{