refac: Email.py module with bugfix (#1058)

* refac: refactor Email.py module for clarity

* chore: rework ready method for dynamic config

* chore: implement resolvconf from v4.3.2-dev
This commit is contained in:
DaanSelen
2026-01-03 13:00:23 +01:00
committed by GitHub
parent 9a7b23748d
commit 17e23685ec
2 changed files with 79 additions and 62 deletions

View File

@@ -1463,7 +1463,7 @@ def API_Locale_Update():
@app.get(f'{APP_PREFIX}/api/email/ready')
def API_Email_Ready():
return ResponseObject(EmailSender.ready())
return ResponseObject(EmailSender.is_ready())
@app.post(f'{APP_PREFIX}/api/email/send')
def API_Email_Send():