summaryrefslogtreecommitdiff
path: root/internal/email/sender.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/email/sender.go')
-rw-r--r--internal/email/sender.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/email/sender.go b/internal/email/sender.go
index 13dd26531..b0d883d9d 100644
--- a/internal/email/sender.go
+++ b/internal/email/sender.go
@@ -35,6 +35,17 @@ type Sender interface {
// SendTestEmail sends a 'testing email sending' style email to the given toAddress, with the given data.
SendTestEmail(toAddress string, data TestData) error
+
+ // SendNewReportEmail sends an email notification to the given addresses, letting them
+ // know that a new report has been created targeting a user on this instance.
+ //
+ // It is expected that the toAddresses have already been filtered to ensure that they
+ // all belong to admins + moderators.
+ SendNewReportEmail(toAddresses []string, data NewReportData) error
+
+ // SendReportClosedEmail sends an email notification to the given address, letting them
+ // know that a report that they created has been closed / resolved by an admin.
+ SendReportClosedEmail(toAddress string, data ReportClosedData) error
}
// NewSender returns a new email Sender interface with the given configuration, or an error if something goes wrong.