Updated default email to req email

master
RuisPipe 2021-07-12 20:44:29 +02:00
parent 9a1f66b92c
commit 99accfdbc2
1 changed files with 2 additions and 3 deletions

View File

@ -15,7 +15,6 @@ var MailQueue amqp.Queue
var Channel *amqp.Channel var Channel *amqp.Channel
type MailInput struct { type MailInput struct {
Key string `json:"k"`
Mail string `json:"m"` Mail string `json:"m"`
TemplateId int `json:"t"` TemplateId int `json:"t"`
LanguageId int `json:"l"` LanguageId int `json:"l"`
@ -73,9 +72,9 @@ func Init() {
log.Fatal(err) log.Fatal(err)
} }
log.Infoln("input", mail.BodyData) log.Infoln("input", mail)
mailer.NewMail([]string{"app@roese.dev"}, mail.TemplateId, mail.LanguageId, mail.BodyData) mailer.NewMail([]string{mail.Mail}, mail.TemplateId, mail.LanguageId, mail.BodyData)
} }
}() }()