mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-02-12 16:12:44 +00:00
added ContentRaw variable to Api Sender content
Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
@@ -897,6 +897,10 @@ func (a *APISender) buildRequestWithCustomURL(
|
||||
if err := mailTemplate.Execute(&mailContent, t); err != nil {
|
||||
return nil, nil, nil, fmt.Errorf("failed to execute mail template: %s", err)
|
||||
}
|
||||
|
||||
// store raw content (no escaping for output in json directly)
|
||||
(*t)["ContentRaw"] = mailContent.String()
|
||||
|
||||
// Properly encode for JSON
|
||||
var buf bytes.Buffer
|
||||
encoder := json.NewEncoder(&buf)
|
||||
|
||||
Reference in New Issue
Block a user