The IDE pyCharm thinks "MIMEMultipart" is an unresolved reference:
from email.MIMEMultipart import MIMEMultipart
The is a red warning on the right hand side bar.
Up to now every red warning on this side bar was correct and broken code. But here the code works.
What's wrong here: my usage of MIMEMultipart or pyCharm?
ctrl-clickonemailand take a look at the source of this module.emailuses a somewhat fancy dynamic import mechanism that PyCharm just can't follow. - sebastian