Help needed! When sending an email to sync using Python, I encountered an error in the note part. The error message is:
--===============0561548188890947013==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
5rWL5q2j5paH
--===============0561548188890947013==--
The Python code is as follows:
# Creating the email object
msg = MIMEMultipart()
msg['From'] = email_username
msg['To'] = recipient_email
msg['Subject'] = subject
# Adding the email body to the MIMEMultipart object, directly specifying the content type and character set to avoid automatic selection of base64 encoding
#text_part = MIMEText(body, _subtype='plain')
text_part = MIMEText(body, _subtype='plain', _charset='utf-8')
msg.attach(text_part)
How should I modify this? Thank you!