diff options
Diffstat (limited to 'modules/private/mail.go')
-rw-r--r-- | modules/private/mail.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/private/mail.go b/modules/private/mail.go index 82216b346b..699f5e5f42 100644 --- a/modules/private/mail.go +++ b/modules/private/mail.go @@ -30,5 +30,8 @@ func SendEmail(ctx context.Context, subject, message string, to []string) (strin }) resp, extra := requestJSONResp(req, &responseText{}) + if resp == nil { + return "", extra + } return resp.Text, extra } |