Projects STRLCPY gophish Commits 6fb77bf3
🤬
  • ■ ■ ■ ■ ■ ■
    mailer/mailer.go
    skipped 222 lines
    223 223   }
    224 224   }
    225 225   log.WithFields(logrus.Fields{
    226  - "smtp_from": smtp_from,
     226 + "smtp_from": smtp_from,
    227 227   "envelope_from": message.GetHeader("From")[0],
    228  - "email": message.GetHeader("To")[0],
     228 + "email": message.GetHeader("To")[0],
    229 229   }).Info("Email sent")
    230 230   m.Success()
    231 231   }
    skipped 2 lines
  • ■ ■ ■ ■ ■ ■
    models/template.go
    skipped 10 lines
    11 11   
    12 12  // Template models hold the attributes for an email template to be sent to targets
    13 13  type Template struct {
    14  - Id int64 `json:"id" gorm:"column:id; primary_key:yes"`
    15  - UserId int64 `json:"-" gorm:"column:user_id"`
    16  - Name string `json:"name"`
     14 + Id int64 `json:"id" gorm:"column:id; primary_key:yes"`
     15 + UserId int64 `json:"-" gorm:"column:user_id"`
     16 + Name string `json:"name"`
    17 17   EnvelopeSender string `json:"envelope_sender"`
    18  - Subject string `json:"subject"`
    19  - Text string `json:"text"`
    20  - HTML string `json:"html" gorm:"column:html"`
    21  - ModifiedDate time.Time `json:"modified_date"`
    22  - Attachments []Attachment `json:"attachments"`
     18 + Subject string `json:"subject"`
     19 + Text string `json:"text"`
     20 + HTML string `json:"html" gorm:"column:html"`
     21 + ModifiedDate time.Time `json:"modified_date"`
     22 + Attachments []Attachment `json:"attachments"`
    23 23  }
    24 24   
    25 25  // ErrTemplateNameNotSpecified is thrown when a template name is not specified
    skipped 173 lines
Please wait...
Page is in error, reload to recover