Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

EmailBackend connection is not being closed #218

Open
wkleinheerenbrink opened this issue Mar 2, 2021 · 0 comments
Open

EmailBackend connection is not being closed #218

wkleinheerenbrink opened this issue Mar 2, 2021 · 0 comments

Comments

@wkleinheerenbrink
Copy link

When sending mails using the contrib.EmailNotifications package, the connection to the email backend is not being closed. Most EmailBackends will provide a fallback for this issue, but some don't.

In case of Django Naomi this results in the webbrowser not being opened to preview the created email.

Steps to reproduce:

  1. Setup django forms
  2. Choose django naomi as e-mail backend
  3. Configure and send a form

No errors are thrown, but now browser will be opened too.

The connection is openened at:

The connection should be closed after this step:

More info on opening/closing connection:
https://docs.djangoproject.com/en/3.1/topics/email/#sending-multiple-emails

wkleinheerenbrink added a commit to fluxility/aldryn-forms that referenced this issue Mar 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant