AttributeError: module 'yagmail' has no attribute 'SMTP', about the solution to using yagmail to send emails

I want to use yagmail to send automated test results emails, and find that an error is reported when running. Finally, I found that it was yagmail.py for my own script name, just change it to another one, and change it to my_yagmail.py

Run OK again! ! ! !

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325033228&siteId=291194637