Added {{.FromEmail}}

pull/1484/head
bjb28 2019-06-14 23:50:32 -04:00
parent 26d99b5a65
commit c55dd9effa
1 changed files with 3 additions and 0 deletions

View File

@ -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
} }