update
parent
e7c12c603b
commit
360501f9d9
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue