From c55dd9effa5091a136fc83b16e9f4f42ab4220b6 Mon Sep 17 00:00:00 2001 From: bjb28 Date: Fri, 14 Jun 2019 23:50:32 -0400 Subject: [PATCH] Added {{.FromEmail}} --- models/template_context.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/models/template_context.go b/models/template_context.go index 96e03f3e..3a58c96f 100644 --- a/models/template_context.go +++ b/models/template_context.go @@ -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: "", From: fn, RId: rid, + FromEmail: fa, }, nil }