Skip to content

Use context manager for handling SMTP connections #11

@jakobj

Description

@jakobj

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions