mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-03 04:25:24 +02:00
feat: extend email support for SSL/No Auth Email Support (#1235)
* Changes Settings to use new SMTP_AUTH_STRATEGY variable in place of SMTP_TLS with transition support #1187 * Wires up default email client to use ssl or tls authentication if enabled in settings * Updates the docs * Update template file * remove SMTP_TLS and use staticmethod for validate * consolidate test cases with params Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
This commit is contained in:
parent
b2066dfe72
commit
6a88a59981
7 changed files with 98 additions and 46 deletions
|
@ -28,7 +28,7 @@ class TestEmailSender(ABCEmailSender):
|
|||
def patch_env(monkeypatch):
|
||||
monkeypatch.setenv("SMTP_HOST", "email.mealie.io")
|
||||
monkeypatch.setenv("SMTP_PORT", "587")
|
||||
monkeypatch.setenv("SMTP_TLS", "True")
|
||||
monkeypatch.setenv("SMTP_AUTH_STRATEGY", "TLS")
|
||||
monkeypatch.setenv("SMTP_FROM_NAME", "Mealie")
|
||||
monkeypatch.setenv("SMTP_FROM_EMAIL", "mealie@mealie.io")
|
||||
monkeypatch.setenv("SMTP_USER", "mealie@mealie.io")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue