RE: smtplib TimeoutError not catch

2016-10-12 Thread Joaquin Alzola
>Not surprisingly, the exception you should catch is simply TimeoutError: >try: >server.sendmail(sender, receivers, msg.as_string()) >except TimeoutError as e: >print("SMTP could not be contacted: %s" % e) >finally: > server.quit() The error was thrown by a

Re: smtplib TimeoutError not catch

2016-10-12 Thread MRAB
On 2016-10-12 14:21, Joaquin Alzola wrote: Hi Guys Try to connect to the smtp via smtplib. The connection is down because the Firewall has not been open yet so the exception is something that should appear. Now I want to catch this timeout in case error happens in future. Here the exception t

Re: [smtplib] how to assure login was succesful?

2016-05-25 Thread dieter
maurice writes: > Once my python script reaches the point where I login in my email account > with: server.login(username,password) (where server server = > smtplib.SMTP('smtp.office365.com:587')), it returns a tuple like this: > > (235, > '2.7.0 Authentication successful target host [address h

Re: smtplib not working as expected

2014-12-27 Thread Juan Christian
Denis it was already resolved, check my message above. ^^ -- https://mail.python.org/mailman/listinfo/python-list

Re: smtplib not working as expected

2014-12-27 Thread Tim Chase
On 2014-12-27 14:28, Denis McMahon wrote: > On Sat, 27 Dec 2014 02:52:39 +, Juan Christian wrote: > > reply: b'550 SMTP is available only with SSL or TLS connection > > enabled.\r\n' > > reply: retcode (550); Msg: b'SMTP is available only with SSL or > > TLS connection enabled.' > > ^^ hav

Re: smtplib not working as expected

2014-12-27 Thread Denis McMahon
On Sat, 27 Dec 2014 02:52:39 +, Juan Christian wrote: > So, I changed the code how you said, but still not working. > Traceback: > > reply: b'550 SMTP is available only with SSL or TLS connection > enabled.\r\n' > reply: retcode (550); Msg: b'SMTP is available only with SSL or TLS > connectio

Re: smtplib not working as expected

2014-12-27 Thread Juan Christian
On Sat Dec 27 2014 at 1:23:12 AM Vincent Vande Vyvre < vincent.vande.vy...@telenet.be> wrote: Try with the TLS: Many thanks, working like a charm, code: server = smtplib.SMTP('smtp.mail.ru') server.starttls() server.ehlo() server.login('SENDER EMAIL GOES HERE', 'PASSWD GOES HERE') server.sendmail

Re: smtplib not working as expected

2014-12-26 Thread Vincent Vande Vyvre
Le 27/12/2014 03:52, Juan Christian a écrit : On Fri Dec 26 2014 at 11:07:30 PM MRAB > wrote: According to the docs, if you let the port parameter default to 0, it'll use port 465. I tested with my ISP. Using port 465, it failed. Using the default, it succeed

Re: smtplib not working as expected

2014-12-26 Thread Juan Christian
On Fri Dec 26 2014 at 11:07:30 PM MRAB wrote: According to the docs, if you let the port parameter default to 0, it'll use port 465. I tested with my ISP. Using port 465, it failed. Using the default, it succeeded. So, I changed the code how you said, but still not working. Code: import smt

Re: smtplib not working as expected

2014-12-26 Thread MRAB
On 2014-12-27 00:39, Juan Christian wrote: I have the following test code: import smtplib fromaddr = 'mksfjnsfji4433j4...@bk.ru ' toaddrs = ['mksfjnsfji4433j4...@bk.ru '] msg = ("From: %s\r\nTo: %s\r\n\r\n" % (fromadd

Re: smtplib is broken when using TLS

2011-05-19 Thread Giampaolo Rodolà
Please file a ticket on: http://bugs.python.org/ Regards, --- Giampaolo http://code.google.com/p/pyftpdlib/ http://code.google.com/p/psutil/ 2011/5/17 nirinA raseliarison : > i think this has the same origin as the ftplib test failure. > > Python 3.2.1rc1 (default, May 17 2011, 22:01:34) > [GCC

Re: smtplib with Google

2010-09-13 Thread narke
On 2010-09-13, member thudfoo wrote: > On Mon, Sep 13, 2010 at 9:20 AM, narke wrote: >> >> Hi, >> >> Can anyone please show me a workable example that can let me use >> google's smtp server to send out a message?  Thanks. >> > > Go here: > > http://code.activestate.com/recipes/langs/python/

Re: smtplib with Google

2010-09-13 Thread member thudfoo
On Mon, Sep 13, 2010 at 9:20 AM, narke wrote: > > Hi, > > Can anyone please show me a workable example that can let me use > google's smtp server to send out a message?  Thanks. > Go here: http://code.activestate.com/recipes/langs/python/ and search for this gmail -- http://mail.py

Re: smtplib upload progress

2009-10-19 Thread Gabriel Genellina
En Mon, 19 Oct 2009 19:33:50 -0300, Guyon Morée escribió: I wanted to use smtplib to send a bunch of files. All good, except I cant monitor the upload progress as far as I can see. So I monkey patched the SMTP.sendall method, which chops up the data and keeps calling a provided callback for

Re: smtplib send mail dns resolve problem

2009-10-19 Thread 星星
On 10月19日, 下午11时05分, "Gabriel Genellina" wrote: > En Mon, 19 Oct 2009 05:44:14 -0200, 星星   > escribió: > > >     my email smtp server hostname can be parsed to 5 ips, for example: > >     ** > >      my email smtp server hostname:  e

Re: smtplib send mail dns resolve problem

2009-10-19 Thread Gabriel Genellina
En Mon, 19 Oct 2009 05:44:14 -0200, 星星 escribió: my email smtp server hostname can be parsed to 5 ips, for example: ** my email smtp server hostname: email-my.local.com ips through dns parse: 1.1.1.1 1.

Re: smtplib send email by using gmail smtp server

2009-05-03 Thread tiefeng wu
> > I've tested with 3.0.1 on Windows XP and worked fine. Seems to be a problem > in the SSL support, but that's all I could say. > > -- > Gabriel Genellina > thanks, I'll check SSL support on my system Tiefeng Wu 2009-05-04 -- http://mail.python.org/mailman/listinfo/python-list

Re: smtplib send email by using gmail smtp server

2009-05-03 Thread Gabriel Genellina
En Sun, 03 May 2009 12:18:33 -0300, tiefeng wu escribió: I'm tring send email using smtp.gmail.com here's the code: *s = SMTP('**smtp.gmail.com* *', 25) s.set_debuglevel(1)* *s.ehlo() s.starttls() s.ehlo() s.login(mygmailaccount, mygmailpassword) s.sendmail(from_addr

Re: smtplib problem with newly rebuilt Debian/lenny system

2009-03-30 Thread cassiope
On Mar 27, 11:29 am, a...@pythoncraft.com (Aahz) wrote: > [posted & e-mailed, please respond to newsgroup] > > In article , > > > > cassiope   wrote: > > >In attempting to diagnose the cause, I tried directly executing the > >lines inside the python2.5 interpreter: > > >        import  smtplib > >

Re: smtplib problem with newly rebuilt Debian/lenny system

2009-03-30 Thread BJ Swope
try s=smtplib.SMTP('127.0.0.1') instead. I'm guessing that it's trying to bind to the IPv6 or some other non IPv4 localhost instance. On Wed, Mar 18, 2009 at 11:25 AM, cassiope wrote: > A hard drive failure forced me to rebuild my main system. Just a few > things haven't been restored; one o

Re: smtplib problem with newly rebuilt Debian/lenny system

2009-03-27 Thread Aahz
[posted & e-mailed, please respond to newsgroup] In article , cassiope wrote: > >In attempting to diagnose the cause, I tried directly executing the >lines inside the python2.5 interpreter: > >import smtplib >s= smtplib.SMTP('localhost') > >but the second line causes a tracebac

Re: SMTPlib inside function, extra tab

2008-10-08 Thread Hunter
Thank you Tino. I appreciate the help. Duh! Anything inside """ """ is preformatted text. I have tabs inside my preformatted text (without even thinking because it looks more normal because of the indent). I removed them and voila! def send_mail(fromaddress,tolist,msgsubj,messagebody):

Re: SMTPlib inside function, extra tab

2008-10-07 Thread Tino Wildenhain
Hunter wrote: I am writing a script that needs to send some emails. And I've used smtplib in the past and it is pretty easy. But I thought, gee it would be easier if I could just call it as a function, passing the from, to, subject, and message text. So I wrote it up as a function and it sort

Re: smtplib "authentication required" error

2008-05-17 Thread 7stud
On May 17, 12:18 pm, cher <[EMAIL PROTECTED]> wrote: > Hey, > > Don't know if you can help, but I'm trying to import archived messages > from Thunderbird into my gmail account and keep getting these types of > errors.  I am using the GML program to help incorporate, but the SMTP > server is not bei

Re: smtplib & gnupg

2008-02-20 Thread Miki
Hello Bernd, > at the moment my program sends mail with smtplib. Is there a chance to > sign and/or encode/cipher this mails with GnuPG? > If yes, does anyone have some sample code? Not exactly Python, but maybe http://codesorcery.net/old/mutt/mutt-gnupg-howto might help. HTH, -- Miki <[EMAIL PRO

Re: smtplib & gnupg

2008-02-20 Thread Shane Geiger
To the best of my knowledge, GNUPG acts upon the body of the message. If you think about it you should realize that the header of the message cannot be encrypted, as it will be handled by mail servers that have no knowledge of GNUPG or your encryption keys. I am further emboldened to make this as

Re: smtplib problem, Unable to relay for

2007-12-26 Thread Benedict Verheyen
Benedict Verheyen schreef: > Thanks for the responses. I solved it by adjusting the relayers list (i'm a domain admin) in others words i granted my pc the rights to relay. I did this by starting the Exchange System Manager and then going to Servers->->protocols->SMTP Then right click on "Defa

Re: smtplib problem, Unable to relay for

2007-12-22 Thread Grant Edwards
On 2007-12-21, Benedict Verheyen <[EMAIL PROTECTED]> wrote: > i get an "Unable to relay for" when trying to send an email > from within my network to an email address not on my domain. I > don't understand why it says "relaying" as i'm sending from an > internal domain user to an external user. Y

Re: smtplib problem, Unable to relay for

2007-12-22 Thread Benedict Verheyen
Tim Williams schreef: > > Have you asked your Exchange admin if the server is allowed to relay via SMTP? I'm the system administrator but haven't really checked the config since i didn't know this type of email sending was considered relaying. > If your "working mail program" is Outlook then i

Re: smtplib problem, Unable to relay for

2007-12-21 Thread Tim Williams
On 21/12/2007, Benedict Verheyen <[EMAIL PROTECTED]> wrote: > Hi, > > i get an "Unable to relay for" when trying to send an email from within > my network to an email address not on my domain. > I don't understand why it says "relaying" as i'm sending from an > internal domain user to an external u

Re: SMTPlib Sender Refused?

2007-06-02 Thread reed
On Jun 2, 1:20 pm, erikcw <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to send an email message with python, and I'm getting this > error: > > Traceback (most recent call last): > File "wa.py", line 430, in ? > main() > File "wa.py", line 425, in main > smtp.sendmail(fromaddr, to, ms

Re: smtplib starttls gmail example - comments?

2007-01-25 Thread py
Excellent imput! I learned - no need for trailing . and i was doing it wrong anyway. - all those extra trys were redundant. - the trailing comma functionality in print. - the extra ehlo is an rfc req. Thanks all. -dave -- http://mail.python.org/mailman/listinfo/python-list

Re: smtplib starttls gmail example - comments?

2007-01-24 Thread Gabriel Genellina
At Wednesday 24/1/2007 09:12, BJ Swope wrote: Both examples have included the cardinal sin in smtp... They both send the message text followed by new line dot new line. The smtp protocol specifically mentions CRLF dot CRLF. Please please please use \r\n.\r\n in your code... No. The SMTP o

Re: smtplib starttls gmail example - comments?

2007-01-24 Thread BJ Swope
Sweet! -- http://mail.python.org/mailman/listinfo/python-list

Re: smtplib starttls gmail example - comments?

2007-01-24 Thread Tim Williams
On 24/01/07, BJ Swope <[EMAIL PROTECTED]> wrote: > > > > On 1/24/07, Tim Williams <[EMAIL PROTECTED]> wrote: > > > > On 24/01/07, py <[EMAIL PROTECTED]> wrote: > > > I would love for anybody to comment on this code with regard to > redundancy/efficiency/wordiness or whatever else. > > > for instanc

Re: smtplib starttls gmail example - comments?

2007-01-24 Thread BJ Swope
On 1/24/07, Tim Williams <[EMAIL PROTECTED]> wrote: On 24/01/07, py <[EMAIL PROTECTED]> wrote: > I would love for anybody to comment on this code with regard to redundancy/efficiency/wordiness or whatever else. > for instance, do i understand correctly that i cant have a try: else: without an in

Re: smtplib starttls gmail example - comments?

2007-01-24 Thread Tim Williams
On 24/01/07, py <[EMAIL PROTECTED]> wrote: > I would love for anybody to comment on this code with regard to > redundancy/efficiency/wordiness or whatever else. > for instance, do i understand correctly that i cant have a try: else: without > an intervening except:? > -dave > > stdout.wri

Re: smtplib starttls gmail example

2007-01-23 Thread Jean-Paul Calderone
On Tue, 23 Jan 2007 23:48:59 GMT, py <[EMAIL PROTECTED]> wrote: >Hi, Jean Paul. > >I read your code with interest. I wonder, does twisted also raise the socket >error or does it know >about this apparently well-known and often ignored incompatibility between the >standard and >the implementations

RE: smtplib starttls gmail example - comments?

2007-01-23 Thread py
I would love for anybody to comment on this code with regard to redundancy/efficiency/wordiness or whatever else. for instance, do i understand correctly that i cant have a try: else: without an intervening except:? -dave stdout.write("calling smtp server...") try: se

Re: smtplib starttls gmail example

2007-01-23 Thread py
Hmm, my last post seems to have been redirected to /dev/null. Anyhoo. Jean Paul, I read your code with interest. Does twisted also raise the apparently well-known and often ignored socket error, and do you supposed this error has something to do with the fact that the trailing \n.\n is encrypted?

Re: smtplib starttls gmail example

2007-01-23 Thread py
Hi, Jean Paul. I read your code with interest. I wonder, does twisted also raise the socket error or does it know about this apparently well-known and often ignored incompatibility between the standard and the implementations? Something else has occurred to me. After starting tls, all the xmitt

Re: smtplib starttls gmail example

2007-01-23 Thread Jean-Paul Calderone
On Tue, 23 Jan 2007 17:25:24 GMT, py <[EMAIL PROTECTED]> wrote: >from smtplib import SMTP >from socket import sslerror #if desired >server = SMTP('smtp.gmail.com') >server.set_debuglevel(0) # or 1 for verbosity >server.ehlo('[EMAIL PROTECTED]') >server.starttls() >server.ehlo('[EMAIL PROTEC

Re: smtplib question

2007-01-17 Thread jean-michel bain-cornu
>> The mail server in my organization is MS exchange. Obviously I can >> email to >> any email address from my MS outlook. >> >> What's the easiest way to fix the program? > > You will need to get smtplib to authenticate when connecting to the > exchange server.Use the login function and the

Re: smtplib question

2007-01-16 Thread Tim Williams
On 16/01/07, gandalf gold <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > I was trying out smtplib and found out that I can email to anyone in my > domain but not to an email address not in the domain. From browsing on the > web, it seems that this has to do with the configuration of the mail serve

Re: smtplib needs me to put from/to headers in the message?

2006-08-24 Thread Carl J. Van Arsdall
Dennis Lee Bieber wrote: > On Wed, 23 Aug 2006 20:23:57 +, Tobiah <[EMAIL PROTECTED]> declaimed > the following in comp.lang.python: > > >> Thank you for the valuable clarification, and the pointers. >> I will look into the RFC's. I wonder though, whether that >> will solve my main question

Re: smtplib needs me to put from/to headers in the message?

2006-08-23 Thread Tim Roberts
tobiah <[EMAIL PROTECTED]> wrote: > >In the example at: > > http://docs.python.org/lib/SMTP-example.html > >The text of the email message ends up with the From: >and To: headers in it, and yet the call to sendmail() >on the server object requires me to specify them again. > >Shouldn't smptlib

Re: smtplib needs me to put from/to headers in the message?

2006-08-23 Thread Tobiah
Thank you for the valuable clarification, and the pointers. I will look into the RFC's. I wonder though, whether that will solve my main question, which is why the python.org example mandates that I specify 'from' and 'to' twice. Thanks, Tobiah Ben Finney wrote: > tobiah <[EMAIL PROTECTED]> wri

Re: smtplib needs me to put from/to headers in the message?

2006-08-23 Thread Ben Finney
tobiah <[EMAIL PROTECTED]> writes: > In the example at: > http://docs.python.org/lib/SMTP-example.html > > The text of the email message ends up with the From: and To: headers > in it, and yet the call to sendmail() on the server object requires > me to specify them again. [Pet hate issue:

Re: smtplib timeout

2006-07-25 Thread Alan Kennedy
[Stuart D. Gathman] >>> I need to set a timelimit for the operation of >>> smtplib.sendmail. It has to be thread based, because pymilter uses >>> libmilter which is thread based. [Alan Kennedy] >> Have you tried setting a default socket timeout, which applies to all >> socket operations? [Stuart

Re: smtplib timeout

2006-07-25 Thread Stuart D. Gathman
On Tue, 25 Jul 2006 09:21:40 -0700, Alan Kennedy wrote: > [Stuart D. Gathman] >> I need to set a timelimit for the operation of >> smtplib.sendmail. It has to be thread based, because pymilter uses >> libmilter which is thread based. > > Have you tried setting a default socket timeout, which app

Re: smtplib timeout

2006-07-25 Thread Alan Kennedy
[Stuart D. Gathman] > I need to set a timelimit for the operation of > smtplib.sendmail. It has to be thread based, because pymilter uses > libmilter which is thread based. There are some cookbook recipies which > run a function in a new thread and call Thread.join(timeout). This > doesn't help,

Re: smtplib problem for newbie

2006-06-22 Thread Justin Azoff
Noah Gift wrote: [snip] > a = long(time.time() * 256) # use fractional seconds > TypeError: 'module' object is not callable Part of your program includes a file or directory that you called 'long'. You should not re-use names of built-ins in your programs.. they cause you to get errors like t

Re: smtplib problem for newbie

2006-06-22 Thread Noah Gift
It turns out it is a cgi issue. If I run this code outside of the cgi-bin it runs just fine. The webhosting company I am using allows python cgi code to run, but I might need to check with them about how it works. Does anyone have advice on python cgi vs. psp vs. python web application framework

Re: smtplib "authentication required" error

2006-04-01 Thread [EMAIL PROTECTED]
Dear tjg: That was extremely helpful. Thank you very kindly. The server did not respond to the .starttls() method but authentication was successful after, it seems, the .ehlo() was specified. I have tried the script without the first s.ehlo() and without s.starttls() and it works perfectly. My auth

Re: smtplib "authentication required" error

2006-03-31 Thread Timothy Grant
On 31 Mar 2006 18:20:27 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > In using a simple smtp routine: > > # begin example > >>> import smtplib > >>> server = smtplib.SMTP('outgoing.verizon.net') > >>> server.sendmail('[EMAIL PROTECTED]', '[EMAIL PROTECTED]', > """To: [EMAIL PROTECTED] > Fro

Re: smtplib error('Connection reset by peer')

2006-01-08 Thread Tim Roberts
"Van_Gogh" <[EMAIL PROTECTED]> wrote: > >I am learning how to use the smtplib module, but am having some very >early problems, maybe because I don't understand it. >So, am I correct that by following the example in the Python: > import smtplib server = smtplib.SMTP('localhost') serve

Re: smtplib error('Connection reset by peer')

2006-01-06 Thread LordLaraby
Do you actually run an SMTP server on your local machine and is it configured to accept mail on the localhost interface and does it allow mail forwarding such as you attempted? LL -- http://mail.python.org/mailman/listinfo/python-list

Re: smtplib error('Connection reset by peer')

2006-01-05 Thread Tim Williams (gmail)
On 4 Jan 2006 15:47:34 -0800, Van_Gogh <[EMAIL PROTECTED]> wrote: Hi,I am learning how to use the smtplib module, but am having some veryearly problems, maybe because I don't understand it.So, am I correct that by following the example in the Python: [snip]  When I try to create the server(the li

Re: smtplib error('Connection reset by peer')

2006-01-04 Thread Van_Gogh
I should mention that I'm on Windows XP. -- http://mail.python.org/mailman/listinfo/python-list

Re: smtplib

2005-07-23 Thread Dark Cowherd
On 7/19/05, Alberto Vera <[EMAIL PROTECTED]> wrote: > Hello: > > Do you know If the smtplib routine have been changed in last releases? > > I used this script: > > http://docs.python.org/lib/SMTP-example.html > > but it didn't work with the last release. > > Do you know any idea about thi

Re: smtplib

2005-07-18 Thread Bill Mill
On 7/18/05, Alberto Vera <[EMAIL PROTECTED]> wrote: > > Hello: > > Do you know If the smtplib routine have been changed in last releases? > > I used this script: > > http://docs.python.org/lib/SMTP-example.html > > but it didn't work with the last release. > > Do you know any

Re: smtplib and TLS

2005-06-21 Thread Jp Calderone
On 21 Jun 2005 08:39:02 -0700, Matthias Kluwe <[EMAIL PROTECTED]> wrote: >> From: "Paul Rubin" "http://phr.cx"@NOSPAM.invalid > >>> "Matthias Kluwe" <[EMAIL PROTECTED]> writes: >>> After getting a @gmail.com address, I recognized I had to use TLS in my >>> python scripts using smtplib in order to g

Re: smtplib and TLS

2005-06-21 Thread Tim Williams
- Original Message - From: "Matthias Kluwe" <[EMAIL PROTECTED]> > > Have you verified that its your end that is broken, not gmail's, do other > > servers give the same response ? > > No, I have not -- I should have, as I know now: Connecting, starttls, > login and sending mail works fin

Re: smtplib and TLS

2005-06-21 Thread Matthias Kluwe
> From: "Paul Rubin" "http://phr.cx"@NOSPAM.invalid >> "Matthias Kluwe" <[EMAIL PROTECTED]> writes: >> After getting a @gmail.com address, I recognized I had to use TLS in my >> python scripts using smtplib in order to get mail to the smtp.gmail.com >> server. >> [...] >> The server accepts and

Re: smtplib and TLS

2005-06-18 Thread Tim Williams
- Original Message - From: "Paul Rubin" "http://phr.cx"@NOSPAM.invalid > "Matthias Kluwe" <[EMAIL PROTECTED]> writes: > > Hmm. I tried > > > > server.sock.realsock.shutdown(2) > > before server.quit() with the result of > > I don't think that's exactly what you want. You need to send a

Re: smtplib and TLS

2005-06-18 Thread Paul Rubin
"Matthias Kluwe" <[EMAIL PROTECTED]> writes: > Hmm. I tried > > server.sock.realsock.shutdown(2) > before server.quit() with the result of I don't think that's exactly what you want. You need to send a specific TLS message BEFORE shutting down the socket, to tell the other end that the TLS conne

Re: smtplib and TLS

2005-06-18 Thread Matthias Kluwe
> "Matthias Kluwe" <[EMAIL PROTECTED]> writes: >> The server accepts and delivers my messages, but the last command >> raises >> socket.sslerror: (8, 'EOF occurred in violation of protocol') >> Did I miss something? Any hint is welcome. > Looks like the module didn't send an TLS Close Notify mes

Re: smtplib and TLS

2005-06-17 Thread Paul Rubin
"Matthias Kluwe" <[EMAIL PROTECTED]> writes: > The server accepts and delivers my messages, but the last command > raises > > socket.sslerror: (8, 'EOF occurred in violation of protocol') > > Did I miss something? Any hint is welcome. Looks like the module didn't send an TLS Close Notify message

Re: smtplib does not send to all recipients

2005-04-14 Thread Peter Hansen
Peter Hansen wrote: [EMAIL PROTECTED] wrote: OK, I've discovered the lost messages, but I'm still slightly confused as to why they ended up there. The messages were being delivered to the local machine, box1.domain.com, even though I was addressing them to @domain.com. The address is irrelevant wi

Re: smtplib does not send to all recipients

2005-04-14 Thread Peter Hansen
[EMAIL PROTECTED] wrote: OK, I've discovered the lost messages, but I'm still slightly confused as to why they ended up there. The messages were being delivered to the local machine, box1.domain.com, even though I was addressing them to @domain.com. The address is irrelevant with SMTP. What matte

Re: smtplib does not send to all recipients

2005-04-14 Thread dccarson
OK, I've discovered the lost messages, but I'm still slightly confused as to why they ended up there. The messages were being delivered to the local machine, box1.domain.com, even though I was addressing them to @domain.com. My past experience with smtp mail has been that if I addressed the domai

Re: smtplib does not send to all recipients

2005-04-13 Thread Steve Holden
[EMAIL PROTECTED] wrote: That seems reasonable. However, using the 'mail' utility I can deliver the same mail successfully. I assume mail is using sendmail under the covers, which is doing the same negotiation with the same SMTP server? The facts would appear to suggest that both sources are acce

Re: smtplib does not send to all recipients

2005-04-13 Thread dccarson
That seems reasonable. However, using the 'mail' utility I can deliver the same mail successfully. I assume mail is using sendmail under the covers, which is doing the same negotiation with the same SMTP server? -- http://mail.python.org/mailman/listinfo/python-list

Re: smtplib does not send to all recipients

2005-04-11 Thread Skip Montanaro
dccarson> I changed debuglevel to 1 and looked at the response on the dccarson> recipient names. They are BOTH accepted, but still only my id dccarson> (d123456) receives the e-mail. The long id (d1234567890) dccarson> never gets the e-mail. Here is the excerpt of the exchange.

Re: smtplib does not send to all recipients

2005-04-11 Thread Steve Holden
[EMAIL PROTECTED] wrote: I changed debuglevel to 1 and looked at the response on the recipient names. They are BOTH accepted, but still only my id (d123456) receives the e-mail. The long id (d1234567890) never gets the e-mail. Here is the excerpt of the exchange. send: 'mail FROM:<[EMAIL PROTECT

Re: smtplib does not send to all recipients

2005-04-11 Thread dccarson
I changed debuglevel to 1 and looked at the response on the recipient names. They are BOTH accepted, but still only my id (d123456) receives the e-mail. The long id (d1234567890) never gets the e-mail. Here is the excerpt of the exchange. send: 'mail FROM:<[EMAIL PROTECTED]> size=160\r\n' reply

Re: smtplib / solaris (newbie problem?)

2005-03-13 Thread "Martin v. Löwis"
[EMAIL PROTECTED] wrote: The error message 'Connection refused' got me thinking that the SMTP server wouldn't allow this or required some authentication, or etc. In case this isn't clear yet: the "connection refused" error happens in TCP sockets if the remote machine is turned on, but offers no ser

Re: smtplib / solaris (newbie problem?)

2005-03-13 Thread chuck
Thanks Steve! Your observation was spot-on. Changed to the correct SMTP host name, and it's all set. The error message 'Connection refused' got me thinking that the SMTP server wouldn't allow this or required some authentication, or etc. Chuck -- http://mail.python.org/mailman/listinfo/python

Re: smtplib / solaris (newbie problem?)

2005-03-11 Thread Steve Holden
[EMAIL PROTECTED] wrote: I've good luck with this on a Linux system (foolproof), and now I'm trying to get the same thing to run on a Solaris box. pythonpath, or env or..? Any help much appreciated. Thanks Chuck Python 2.3.2 (#1, Oct 17 2003, 19:06:15) [C] on sunos5 Type "help", "copyright", "cred

Re: smtplib Segfaults Python under Debian

2005-03-01 Thread Cousin Stanley
| localhost:~alex#python | Python 2.3.3 (#2, Feb 24 2004, 09:29:20) | [GCC 3.3.3 (Debian)] on linux2 | Type "help", "copyright", "credits" or "license" | for more information. | | >>> import smtplib | | Segmentation fault (core dumped) | | This happens under python 2.2 and 2.3 and 2.4 | Alex .

Re: smtplib Segfaults Python under Debian

2005-03-01 Thread Skip Montanaro
Alex> localhost:~alex#python Alex> Python 2.3.3 (#2, Feb 24 2004, 09:29:20) Alex> [GCC 3.3.3 (Debian)] on linux2 Alex> Type "help", "copyright", "credits" or "license" for more information. import smtplib Alex> Segmentation fault (core dumped) Can you file a bug repor

Re: smtplib bug with Windows XP

2005-01-26 Thread [EMAIL PROTECTED]
it works! you da man! At the same time as my desktop was upgraded to Windows XP, the IT people switched virus checker products to McAfee Enterprise. And indeed, as soon as I disabled that 'mass worm sending' option, my Python scripts is once again able to send mail. thanks so much for this tip!

Re: smtplib bug with Windows XP

2005-01-26 Thread Peter Hansen
Steve Christensen wrote: In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: thank Peter, elbert, for the suggestions. I hadn't thought of using telnet to try to connect to the SMTP server. and when I do try, telnet can't connect either, at least on port 25. On port 110, it has no problem.

Re: smtplib bug with Windows XP

2005-01-25 Thread Steve Christensen
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > thank Peter, elbert, for the suggestions. I hadn't thought of using > telnet to try to connect to the SMTP server. and when I do try, telnet > can't connect either, at least on port 25. On port 110, it has no > problem. So, perhaps the

Re: smtplib bug with Windows XP

2005-01-25 Thread [EMAIL PROTECTED]
thank Peter, elbert, for the suggestions. I hadn't thought of using telnet to try to connect to the SMTP server. and when I do try, telnet can't connect either, at least on port 25. On port 110, it has no problem. So, perhaps the IT people have made some configuration changes; I'll have a chat

Re: smtplib bug with Windows XP

2005-01-24 Thread elbertlev
> Try manually, but think about these options: a firewall that > has suddenly been enabled, an SMTP server that now requires > authentication, some kind of proxy like what virus scanners > use (though why they would intercept outgoing mail I don't > know)... > > -Peter I bet it was the firewall

Re: smtplib bug with Windows XP

2005-01-24 Thread Peter Hansen
[EMAIL PROTECTED] wrote: I'm having problem with a script that used to work under Win2k but is now broken after an install of WinXP Pro. I can no longer connect to a local mail server. Has anyone else seen this? If so, were you able to work around it? Here's the traceback (below). The usual f