email attachment solution found

Mark Carter cartermark46 at ukmail.com
Wed Dec 10 18:36:48 CET 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