diff options
Diffstat (limited to 'internal/notification/file_notifier.go')
| -rw-r--r-- | internal/notification/file_notifier.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/notification/file_notifier.go b/internal/notification/file_notifier.go index b89242974..fe6305ae4 100644 --- a/internal/notification/file_notifier.go +++ b/internal/notification/file_notifier.go @@ -2,6 +2,7 @@ package notification import ( "fmt" + "net/mail" "os" "path/filepath" "time" @@ -42,7 +43,7 @@ func (n *FileNotifier) StartupCheck() (err error) { } // Send send a identity verification link to a user. -func (n *FileNotifier) Send(recipient, subject, body, _ string) error { +func (n *FileNotifier) Send(recipient mail.Address, subject, body, _ string) error { content := fmt.Sprintf("Date: %s\nRecipient: %s\nSubject: %s\nBody: %s", time.Now(), recipient, subject, body) return os.WriteFile(n.path, []byte(content), fileNotifierMode) |
