Re: Send email notification

2006-03-08 Thread Laurent Pointal
Ernesto a écrit :
 Is there a special module for mail ?
 
 I'd like to send an email [to 'n' unique email addresses] from a python
 script.  

If you want all adressee to be the only one visible in to: field, you
must send n emails.

For such a purpose, see iMailer module here:

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

Else, see other posts.

A+

Laurent.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Send email notification

2006-03-08 Thread Grant Edwards
On 2006-03-08, Steve Holden [EMAIL PROTECTED] wrote:

 Hang around here long and you'll see a bunch of people waiting
 on replies to questions Google could have given them far
 quicker. If we weren't paid thousands of dollars a week to
 answer questions on this list we'd probably get snarky more
 often.

That reminds me: I haven't seen last weeks check yet.  I trust
it will arrive soon...

-- 
Grant Edwards   grante Yow!  I feel like I am
  at   sharing a CORN-DOG with
   visi.comNIKITA KHRUSCHEV...
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Send email notification

2006-03-08 Thread Christos Georgiou
On Wed, 08 Mar 2006 06:20:42 +, rumours say that Steve Holden
[EMAIL PROTECTED] might have written:

 If we 
weren't paid thousands of dollars a week to answer questions on this 
list we'd probably get snarky more often.

Steve, please, don't make me look like a liar in front of the children!
-- 
TZOTZIOY, I speak England very best.
Dear Paul,
please stop spamming us.
The Corinthians
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Send email notification

2006-03-08 Thread Peter Hansen
Dennis Lee Bieber wrote:
 On Wed, 08 Mar 2006 06:20:42 +, Steve Holden [EMAIL PROTECTED]
 declaimed the following in comp.lang.python:
 
Hang around here long and you'll see a bunch of people waiting on 
replies to questions Google could have given them far quicker. If we 
weren't paid thousands of dollars a week to answer questions on this 
list we'd probably get snarky more often.
 
   What! Why didn't anyone tell me where to submit my timecard?

It's by the *byte*, Dennis.  How did you think Alex managed all that 
time off real work to write a book on Python (like anyone buys those)?

;-)

-Peter

-- 
http://mail.python.org/mailman/listinfo/python-list


Send email notification

2006-03-07 Thread Ernesto
Is there a special module for mail ?

I'd like to send an email [to 'n' unique email addresses] from a python
script.  

Thanks !

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Send email notification

2006-03-07 Thread Laszlo Zsolt Nagy
Ernesto wrote:

Is there a special module for mail ?

I'd like to send an email [to 'n' unique email addresses] from a python
script.  
  

http://www.justfuckinggoogleit.com/search.pl?python+smtp

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Send email notification

2006-03-07 Thread Ernesto
I guess that was jerk-off version of:

smtplib

Thanks a lot.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Send email notification

2006-03-07 Thread Larry Bates
Ernesto wrote:
 Is there a special module for mail ?
 
 I'd like to send an email [to 'n' unique email addresses] from a python
 script.  
 
 Thanks !
 
This class makes what you want to do extremely easy.

http://motion.sourceforge.net/related/send_jpg.py

-Larry Bates
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Send email notification

2006-03-07 Thread rtilley
Ernesto wrote:
 Is there a special module for mail ?
 
 I'd like to send an email [to 'n' unique email addresses] from a python
 script.  

from email.MIMEText import MIMEText
import email.Utils
import smtplib

# 'users' is a list of email addys.
 for u in users:
try:
print Sending email to ... , u
f = FROM_NAME[EMAIL PROTECTED]
t = u

msg = MIMEText(MESSAGE BODY OF EMAIL)

msg[Subject] = MESSAGE SUBJECT
msg[Message-id] = email.Utils.make_msgid()
msg[From] = f
msg[To] = t

h = YOUR.SMTP.SERVER
s = smtplib.SMTP(h)
s.sendmail(f, t, msg.as_string())
s.quit()
except Exception, e:
 print e
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Send email notification

2006-03-07 Thread Steve Holden
Ernesto wrote:
 I guess that was jerk-off version of:
 
 smtplib
 
 Thanks a lot.
 
Well, it gave you the information you wanted, right? (Except that it 
might have mentioned the email package, which would help you 
formulating the messages as well.

But that which doesn't kill us makes us stronger, and at least you 
aren't dead :-)

Hang around here long and you'll see a bunch of people waiting on 
replies to questions Google could have given them far quicker. If we 
weren't paid thousands of dollars a week to answer questions on this 
list we'd probably get snarky more often.

regards
  Steve
-- 
Steve Holden   +44 150 684 7255  +1 800 494 3119
Holden Web LLC/Ltd www.holdenweb.com
Love me, love my blog holdenweb.blogspot.com

-- 
http://mail.python.org/mailman/listinfo/python-list