kootenpv / yagmail

Send email in Python conveniently for gmail using yagmail
MIT License
2.64k stars 263 forks source link

AttributeError: partially initialized module 'yagmail' has no attribute 'SMTP' (most likely due to a circular import) #258

Open tjerram opened 1 year ago

tjerram commented 1 year ago

Just installed yagmail on a fresh install of raspberry pi os and tried to run the following. I got the error above.

import yagmail

# initiating connection with SMTP server
yag = yagmail.SMTP("*******","*******")
# Adding Content and sending it
yag.send("************.com","yagtest","test of Yagmail from python")
kootenpv commented 1 year ago

Most likely you called this file yagmail.py or email.py which would cause the problem?