How to Solve NameError: name 'MIMEAudio' is not defined -- email

Solution: Import the 'MIMEAudio' module

# Add the following line to the top of your code
from email.mime.audio import MIMEAudio

 

For more information:
email MIMEAudio