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! -- You received this message because you are subscribed to the Google Groups "MyLifeOrganized" group. To unsubscribe from this group and stop receiving emails from it, send an email to mylifeorganized+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mylifeorganized/1683ca35-9c04-4a12-bc6e-47842a4e41c6n%40googlegroups.com.