Helpful Information
 
 
Category: Python
email.MIMEText giving problem with py2exe

Hi ,

i am using
from email.MIMEText import MIMEText

Only script is running fine.
But when i made exe by py2exe it is giving this below error.

Traceback (most recent call last):
File "Mymail.py", line 4, in <module>
File "email\__init__.pyc", line 79, in __getattr__
ImportError: No module named text


How to solve?

Hello,

i had similar problem and found out that changing from
from email import MIMEText
to
from email import *
helps ;)










privacy (GDPR)