diff --git a/worker/worker.go b/worker/worker.go index 568b198b..478fb12f 100644 --- a/worker/worker.go +++ b/worker/worker.go @@ -9,8 +9,8 @@ import ( "strings" "text/template" - "github.com/jordan-wright/email" "github.com/gophish/gophish/models" + "github.com/jordan-wright/email" ) // Logger is the logger for the worker @@ -119,6 +119,10 @@ func processCampaign(c *models.Campaign) { if err != nil { Logger.Println(err) } + err = c.AddEvent(models.Event{Email: t.Email, Message: models.EVENT_SENT}) + if err != nil { + Logger.Println(err) + } } } err = c.UpdateStatus(models.CAMPAIGN_EMAILS_SENT)