I found the answer to my previous question: You don't need the preamble or the epilogue, all you need is the code: body = MIMEText('This is the body of the email!') #Here is the body msg.attach(body)