mirror of
https://github.com/gophish/gophish
synced 2024-11-12 23:37:11 +00:00
Fixed formatting from Custom Envelope PR #2334
This commit is contained in:
parent
d0ff3829e5
commit
6fb77bf3ce
2 changed files with 10 additions and 10 deletions
|
@ -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()
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue