anvil-works / anvil-runtime

The runtime engine for hosting Anvil web apps
https://anvil.works/open-source
Other
904 stars 117 forks source link

SMTP server config no longer working in `anvil-app-server` 1.5.x #39

Closed samcarswell closed 3 years ago

samcarswell commented 3 years ago

We have a yaml file with the following SMTP options:

smtp-host: example.net
smtp-port: 465
smtp-encryption: ssl
smtp-username: admin@example.net
smtp-password: example_password

This works fine for anvil-app-server 1.4, however using 1.5.x produces the following the error:

InternalError: No SMTP server has been configured for this app
Traceback:
  /opt/bitnami/python/lib/python3.7/site-packages/anvil_downlink_worker/anvil/_threaded_server.py:404
  /opt/bitnami/python/lib/python3.7/site-packages/anvil_downlink_worker/anvil/server.py:40
  /opt/bitnami/python/lib/python3.7/site-packages/anvil_downlink_worker/anvil/email.py:37
  AusTrakka/UserManagementServer.py:241
  AusTrakka/UserManagementServer.py:377
  app/AusTrakka/Utils/Users/UserAdmin.py:266
  app/AusTrakka/Utils/Users/UserLogin.py:54
  app/AusTrakka/HomeForm/__init__.py:91

Passing these as CLI options produces the same result.

meredydd commented 3 years ago

Hi @samcarswell,

I believe this is now fixed as of 1.5.5. Can you confirm?

samcarswell commented 3 years ago

Hi @meredydd, yes I can confirm that this is now fixed in 1.5.5. Thank you!