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