mirror of
https://github.com/gophish/gophish
synced 2024-11-14 16:27:23 +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{
|
log.WithFields(logrus.Fields{
|
||||||
"smtp_from": smtp_from,
|
"smtp_from": smtp_from,
|
||||||
"envelope_from": message.GetHeader("From")[0],
|
"envelope_from": message.GetHeader("From")[0],
|
||||||
"email": message.GetHeader("To")[0],
|
"email": message.GetHeader("To")[0],
|
||||||
}).Info("Email sent")
|
}).Info("Email sent")
|
||||||
m.Success()
|
m.Success()
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,15 +11,15 @@ import (
|
||||||
|
|
||||||
// Template models hold the attributes for an email template to be sent to targets
|
// Template models hold the attributes for an email template to be sent to targets
|
||||||
type Template struct {
|
type Template struct {
|
||||||
Id int64 `json:"id" gorm:"column:id; primary_key:yes"`
|
Id int64 `json:"id" gorm:"column:id; primary_key:yes"`
|
||||||
UserId int64 `json:"-" gorm:"column:user_id"`
|
UserId int64 `json:"-" gorm:"column:user_id"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
EnvelopeSender string `json:"envelope_sender"`
|
EnvelopeSender string `json:"envelope_sender"`
|
||||||
Subject string `json:"subject"`
|
Subject string `json:"subject"`
|
||||||
Text string `json:"text"`
|
Text string `json:"text"`
|
||||||
HTML string `json:"html" gorm:"column:html"`
|
HTML string `json:"html" gorm:"column:html"`
|
||||||
ModifiedDate time.Time `json:"modified_date"`
|
ModifiedDate time.Time `json:"modified_date"`
|
||||||
Attachments []Attachment `json:"attachments"`
|
Attachments []Attachment `json:"attachments"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ErrTemplateNameNotSpecified is thrown when a template name is not specified
|
// ErrTemplateNameNotSpecified is thrown when a template name is not specified
|
||||||
|
|
Loading…
Reference in a new issue