email attachment solution found

Mark Carter cartermark46 at ukmail.com
Wed Dec 10 12:36:48 EST 2003


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)




More information about the Python-list mailing list