update
parent
e7c12c603b
commit
360501f9d9
|
@ -5,6 +5,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
"github.com/spf13/viper"
|
||||||
"kumoly.io/kumoly/app/auth"
|
"kumoly.io/kumoly/app/auth"
|
||||||
"kumoly.io/kumoly/app/email"
|
"kumoly.io/kumoly/app/email"
|
||||||
"kumoly.io/kumoly/app/errors"
|
"kumoly.io/kumoly/app/errors"
|
||||||
|
@ -46,7 +47,7 @@ func (srv Service) Load() error {
|
||||||
panic(errors.ErrorBadRequest)
|
panic(errors.ErrorBadRequest)
|
||||||
}
|
}
|
||||||
to := strings.Split(tos, ",")
|
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",
|
Greeting: "Dear",
|
||||||
Receiver: "Administrator",
|
Receiver: "Administrator",
|
||||||
Intros: []string{
|
Intros: []string{
|
||||||
|
|
Loading…
Reference in New Issue