Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use context manager for handling SMTP connections #11

Open
jakobj opened this issue Aug 26, 2017 · 0 comments · May be fixed by #95
Open

Use context manager for handling SMTP connections #11

jakobj opened this issue Aug 26, 2017 · 0 comments · May be fixed by #95

Comments

@jakobj
Copy link
Member

jakobj commented Aug 26, 2017

Since Python3.3, smtplib supports the with statement (https://docs.python.org/3.5/library/smtplib.html). This should be used to make sure the QUIT statement is automatically executed with the script exits. A workaround for older versions should be provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant