diff --git a/api/domain_export.go b/api/domain_export.go index 7a2e653..77f9f72 100644 --- a/api/domain_export.go +++ b/api/domain_export.go @@ -123,6 +123,11 @@ func domainExportBeginHandler(w http.ResponseWriter, r *http.Request) { return } + if !smtpConfigured { + bodyMarshal(w, response{"success": false, "message": errorSmtpNotConfigured.Error()}) + return + } + o, err := ownerGetByOwnerToken(*x.OwnerToken) if err != nil { bodyMarshal(w, response{"success": false, "message": err.Error()})