By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,171 Members | 809 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,171 IT Pros & Developers. It's quick & easy.

Email

P: n/a
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.

Aug 2 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
On Aug 2, 12:33 pm, Rohan <vodela....@gmail.comwrote:
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

Aug 2 '07 #2

P: n/a
Rohan 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.
You can use iMailer as an example script to get parts:

http://nojhan.free.fr/article.php3?id_article=22

A+

Laurent.

Aug 2 '07 #3

P: n/a
On Aug 2, 1:06 pm, Laurent Pointal <laurent.poin...@wanadoo.frwrote:
Rohan 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.

You can use iMailer as an example script to get parts:

http://nojhan.free.fr/article.php3?id_article=22

A+

Laurent.

Laurent the link you gave me is in a language unknown to me if you
have anything that expalains in english, then let me know.
thanks

Aug 3 '07 #4

P: n/a
On Aug 3, 9:47 am, Rohan <vodela....@gmail.comwrote:
On Aug 2, 1:06 pm, Laurent Pointal <laurent.poin...@wanadoo.frwrote:
Rohan 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.
You can use iMailer as an example script to get parts:
http://nojhan.free.fr/article.php3?id_article=22
A+
Laurent.

Laurent the link you gave me is in a language unknown to me if you
have anything that expalains in english, then let me know.
thanks
Did you try Google translate? Here is the tiny url of the page you
wanted translated http://tinyurl.com/3xlcmc

Aug 4 '07 #5

P: n/a
On Aug 3, 7:22 pm, SMERSH009 <SMERSH0...@gmail.comwrote:
On Aug 3, 9:47 am,Rohan<vodela....@gmail.comwrote:
On Aug 2, 1:06 pm, Laurent Pointal <laurent.poin...@wanadoo.frwrote:
>Rohanwrote:
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.
You can use iMailer as an example script to get parts:
>http://nojhan.free.fr/article.php3?id_article=22
A+
Laurent.
Laurent the link you gave me is in a language unknown to me if you
have anything that expalains in english, then let me know.
thanks

Did you try Google translate? Here is the tiny url of the page you
wanted translatedhttp://tinyurl.com/3xlcmc
Thanks everyone,
I'm able to write a script which reads the file and puts it in the
message. I would like to attach the file is it possible?

Aug 7 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.