Updated default email to req email
parent
9a1f66b92c
commit
99accfdbc2
|
@ -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)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue