I am trying to make my first email sender, here's the code:
import smtplib
server = smtplib.SMTP_SSL('smtp.gmail.com', 465)
server.login("(testemail)", "(pass)")
server.sendmail(
"(testemail)",
"(myemail)",
"this message is from python")
server.quit()
It returns with this error:
AttributeError: partially initialized module 'smtplib' has no attribute 'SMTP' (most likely due to a circular import)
For context, I did not save it as email.py