I get the following error when I try to use smtplib in my Python code.
Traceback (most recent call last): File "myemail.py", line 1, in <module> import smtplib File "/usr/lib64/python2.7/smtplib.py", line 46, in <module> import email.utils ImportError: No module named utils
Surprisingly, I can turn on the library when I work directly with the Python interpreter.
Previously, the file was called "email.py", but according to the answers to stackoverflow regarding similar problems, I changed the name to "myemail.py". It still does not work. Please help.
source share