How to Solve NameError: name 'MIMEBase' is not defined -- email
Solution: Import the 'MIMEBase' module
# Add the following line to the top of your code
from email.mime.base import MIMEBase
For more information:
email MIMEBase
# Add the following line to the top of your code
from email.mime.base import MIMEBase
For more information:
email MIMEBase