AttributeError: 'str' object has no attribute 'policy'
问题 I am new to Python. I am trying to make an email script that can send an email. First, I made a Python script without any classes, just function just to make sure that the script runs as expected. After I got the expected result. I am trying to rewrite the script using classes, so as to learn. But I am getting error, which I don't understand. I don't understand where actually the problem lies. Below is the code as well as the screenshot of the error import smtplib import os import sys import