Anyway assuming that you want to send the data in the file, rather than the file itself (as an attachment) it should be pretty straight forward; read() the data into your program and send that data as the message. If you do want to attach a file it's a little more difficult.

In any case I would recommend that you check out the documentation for the email and smtplib modules for more information: