Relative Content

Tag Archive for pythonemailmimemultipartmime-message

How to add text to the body of an email in Python using MIMEMultipart

I am trying to send an email through Python to multiple recipients, and each recipient receives a different attachment on that email. I have managed to do this. The code below also lets me specify the subject line of the email. However, my question is how to add to the existing code I have below so that I am able to add some text within the body of the email. Ideally, this text would be sent to all recipients. I have been using MIMEMultipart and MIMEBase. Thank you!