469,641 Members | 1,182 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,641 developers. It's quick & easy.

Email

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
5 980
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
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
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
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
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.

Similar topics

12 posts views Thread by Chuck Anderson | last post: by
88 posts views Thread by Mike | last post: by
2 posts views Thread by BSG-SMTP-Gateway | last post: by
26 posts views Thread by libsfan01 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.