Fixed formatting from Custom Envelope PR #2334

This commit is contained in:
Glenn Wilkinson 2022-06-05 21:18:32 +01:00
parent d0ff3829e5
commit 6fb77bf3ce
2 changed files with 10 additions and 10 deletions

View file

@ -223,9 +223,9 @@ func sendMail(ctx context.Context, dialer Dialer, ms []Mail) {
}
}
log.WithFields(logrus.Fields{
"smtp_from": smtp_from,
"smtp_from": smtp_from,
"envelope_from": message.GetHeader("From")[0],
"email": message.GetHeader("To")[0],
"email": message.GetHeader("To")[0],
}).Info("Email sent")
m.Success()
}

View file

@ -11,15 +11,15 @@ import (
// Template models hold the attributes for an email template to be sent to targets
type Template struct {
Id int64 `json:"id" gorm:"column:id; primary_key:yes"`
UserId int64 `json:"-" gorm:"column:user_id"`
Name string `json:"name"`
Id int64 `json:"id" gorm:"column:id; primary_key:yes"`
UserId int64 `json:"-" gorm:"column:user_id"`
Name string `json:"name"`
EnvelopeSender string `json:"envelope_sender"`
Subject string `json:"subject"`
Text string `json:"text"`
HTML string `json:"html" gorm:"column:html"`
ModifiedDate time.Time `json:"modified_date"`
Attachments []Attachment `json:"attachments"`
Subject string `json:"subject"`
Text string `json:"text"`
HTML string `json:"html" gorm:"column:html"`
ModifiedDate time.Time `json:"modified_date"`
Attachments []Attachment `json:"attachments"`
}
// ErrTemplateNameNotSpecified is thrown when a template name is not specified