Email

kyosohma at gmail.com kyosohma at gmail.com
Thu Aug 2 14:01:08 EDT 2007


On Aug 2, 12:33 pm, Rohan <vodela.... at gmail.com> wrote:
> I was wondering if there could be an arrangement where a file could be
> attached and send as an email.
> For ex
> f = open(add.txt,w)
> f.write('python')
> f.close()
>
> Now I would like to send an email with add.txt as an attachment, is it
> possible ?
> some one give me a pointer towards this.

Try looking up the email module.

http://docs.python.org/lib/node162.html

Mike




More information about the Python-list mailing list