mirror of https://github.com/gophish/gophish
Added {{.FromEmail}}
parent
26d99b5a65
commit
c55dd9effa
|
@ -24,6 +24,7 @@ type PhishingTemplateContext struct {
|
|||
TrackingURL string
|
||||
RId string
|
||||
BaseURL string
|
||||
FromEmail string
|
||||
BaseRecipient
|
||||
}
|
||||
|
||||
|
@ -35,6 +36,7 @@ func NewPhishingTemplateContext(ctx TemplateContext, r BaseRecipient, rid string
|
|||
return PhishingTemplateContext{}, err
|
||||
}
|
||||
fn := f.Name
|
||||
fa := f.Address
|
||||
if fn == "" {
|
||||
fn = f.Address
|
||||
}
|
||||
|
@ -66,6 +68,7 @@ func NewPhishingTemplateContext(ctx TemplateContext, r BaseRecipient, rid string
|
|||
Tracker: "<img alt='' style='display: none' src='" + trackingURL.String() + "'/>",
|
||||
From: fn,
|
||||
RId: rid,
|
||||
FromEmail: fa,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue