Re: problems with smtplib

2005-09-02 Thread Harlin Seritt
What are you getting in your smtpd logs? Are you using postfix?
sendmail? or are you running this against a Windows stmp service?

Harlin Seritt
Internet Villa: www.seritt.org

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


Re: problems with smtplib

2005-09-02 Thread n00m
I also can't get my SMTP (win2k) working with Python.
But... funnily this works fine:

import smtplib
s = smtplib.SMTP('smtp.mail.ru')
s.sendmail('[EMAIL PROTECTED]', '[EMAIL PROTECTED]', 'hi
there!')
s.quit()

Why do they (mail.ru) allow outsiders to use their service???

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


Re: problems with smtplib

2005-09-02 Thread Steve Holden
n00m wrote:
 I also can't get my SMTP (win2k) working with Python.
 But... funnily this works fine:
 
 import smtplib
 s = smtplib.SMTP('smtp.mail.ru')
 s.sendmail('[EMAIL PROTECTED]', '[EMAIL PROTECTED]', 'hi
 there!')
 s.quit()
 
That's pretty strange: the second argument should be a list. Are you 
*sure* it worked?

 Why do they (mail.ru) allow outsiders to use their service???
 
Ask them!

regards
  Steve
-- 
Steve Holden   +44 150 684 7255  +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/

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


Re: problems with smtplib

2005-09-02 Thread n00m

Steve Holden wrote:
 That's pretty strange: the second argument should be a list. Are you
 *sure* it worked?

Hmm...
I sent a couple of letters to my two different addresses... and got
them!

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


Re: problems with smtplib

2005-09-02 Thread Jon Hewer
I'm running Fedora Core 3, and I assume thats useing sendmail...

On 2 Sep 2005 04:25:41 -0700, Harlin Seritt [EMAIL PROTECTED] wrote:
 What are you getting in your smtpd logs? Are you using postfix?
 sendmail? or are you running this against a Windows stmp service?
 
 Harlin Seritt
 Internet Villa: www.seritt.org
 
 --
 http://mail.python.org/mailman/listinfo/python-list

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


Re: problems with smtplib

2005-09-02 Thread Peter Hansen
Steve Holden wrote:
 n00m wrote:
 
 I also can't get my SMTP (win2k) working with Python.
 But... funnily this works fine:

 import smtplib
 s = smtplib.SMTP('smtp.mail.ru')
 s.sendmail('[EMAIL PROTECTED]', '[EMAIL PROTECTED]', 'hi
 there!')
 s.quit()

 That's pretty strange: the second argument should be a list. Are you 
 *sure* it worked?

No longer required (as of at least Python 2.3 if not earlier).

to_addrs : A list of addresses to send this mail to.  A bare string 
will be treated as a list with 1 address.  (from smtplib.py sendmail() 
docstring)

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


Re: problems with smtplib

2005-09-02 Thread Steve Holden
Peter Hansen wrote:
 Steve Holden wrote:
 
n00m wrote:


I also can't get my SMTP (win2k) working with Python.
But... funnily this works fine:

import smtplib
s = smtplib.SMTP('smtp.mail.ru')
s.sendmail('[EMAIL PROTECTED]', '[EMAIL PROTECTED]', 'hi
there!')
s.quit()


That's pretty strange: the second argument should be a list. Are you 
*sure* it worked?
 
 
 No longer required (as of at least Python 2.3 if not earlier).
 
 to_addrs : A list of addresses to send this mail to.  A bare string 
 will be treated as a list with 1 address.  (from smtplib.py sendmail() 
 docstring)
 
Oops. Documentation bug. Fortunately it  looks like it's been fixed in 
response to bug 1217513. Thanks for the tip, Peter.

regards
  Steve
-- 
Steve Holden   +44 150 684 7255  +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/

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


Re: problems with smtplib

2005-09-02 Thread Jon Hewer
just got home and i've tried my script on windows with my isp's smtp
server, and found that my code wasn't getting past the s.connect()

changed me code to:

s = smtplib.SMTP('smtp.lineone.net')
s.sendmail(me, to, msg.as_string())
s.quit()

and now it works fine

On 9/2/05, Steve Holden [EMAIL PROTECTED] wrote:
 Peter Hansen wrote:
  Steve Holden wrote:
 
 n00m wrote:
 
 
 I also can't get my SMTP (win2k) working with Python.
 But... funnily this works fine:
 
 import smtplib
 s = smtplib.SMTP('smtp.mail.ru')
 s.sendmail('[EMAIL PROTECTED]', '[EMAIL PROTECTED]', 'hi
 there!')
 s.quit()
 
 
 That's pretty strange: the second argument should be a list. Are you
 *sure* it worked?
 
 
  No longer required (as of at least Python 2.3 if not earlier).
 
  to_addrs : A list of addresses to send this mail to.  A bare string
  will be treated as a list with 1 address.  (from smtplib.py sendmail()
  docstring)
 
 Oops. Documentation bug. Fortunately it  looks like it's been fixed in
 response to bug 1217513. Thanks for the tip, Peter.
 
 regards
   Steve
 --
 Steve Holden   +44 150 684 7255  +1 800 494 3119
 Holden Web LLC http://www.holdenweb.com/
 
 --
 http://mail.python.org/mailman/listinfo/python-list

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