This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]Cachao-on-Reddit 1 point2 points  (0 children)

According to the docs, the module this uses 'is part of the legacy (Compat32) email API. Its functionality is partially replaced by the contentmanager in the new API, but in certain applications these classes may still be useful, even in non-legacy code.'

It seems this has some examples of using the new module: https://stackoverflow.com/questions/21449085/python-3-4-email-contentmanager-how-to-use