473,390 Members | 1,094 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,390 software developers and data experts.

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 1054
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Chuck Anderson | last post by:
Can anyone point me in the right direction? I want to use Php to automate confirmation of someone joining an email list by them replying to an email (so they don't have to have a browser?). I...
4
by: dmiller23462 | last post by:
So here's my problem.....I need to set up different email distributions based on which option in the following Select form has been chosen....For instance if "Putaway" is chosen it needs to email...
88
by: Mike | last post by:
Is there a way to determine what a user's default email client is? I read a post from 3 years ago that said no. I guess I'm hoping something has come along since then.
2
by: BSG-SMTP-Gateway | last post by:
The following message sent by this account has violated system policy: Connection From: 64.253.55.90 From: python-list@python.org To: terriss@birdsall.com, q4dzsAEAAAAA@birdsall.com,...
26
by: libsfan01 | last post by:
Hi all! Can anyone show me how to check and email field on a form for the existence of these two characters. Kind regards Marc
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.