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