FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 02-25-2010, 10:53 AM
Susan Day
 
Default getaddrinfo problem

Hi;
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
*/var/www/html/mysite.com/simplemail/mail2.py
** 40 </head>** 41 <body>'** 42 my_mail()** 43 print '** 44 </body>my_mail = <function my_mail>*/var/www/html/mysite.com/simplemail/mail2.py in my_mail()
** 27 * * * to_address = ourEmail,** 28 * * * subject = subject,** 29 * * * message = message** 30 * ).send()** 31 * print 'Thank you, %s, we will get back to you shortly!<br />' % (name)
message = 'Name: beno -
Message: test'*/var/www/html/mysite.com/simplemail/simplemail.py in send(self=<simplemail.Email object>)
**344 * * * * smtp = smtplib.SMTP()**345 * * * * if self.smtp_server:**346 * * * * * * smtp.connect(self.smtp_server)**347 * * * * else:**348 * * * * * * smtp.connect()
smtp = <smtplib.SMTP instance>, smtp.connect = <bound method SMTP.connect of <smtplib.SMTP instance>>, self = <simplemail.Email object>, self.smtp_server = 'localhost'*/usr/lib64/python2.4/smtplib.py in connect(self=<smtplib.SMTP instance>, host='localhost', port=25)
**305 * * * * if not self.sock:**306 * * * * * * raise socket.error, msg**307 * * * * (code, msg) = self.getreply()**308 * * * * if self.debuglevel > 0: print>>stderr, "connect:", msg
**309 * * * * return (code, msg)code undefined, msg = 'getaddrinfo returns an empty list', self = <smtplib.SMTP instance>, self.getreply = <bound method SMTP.getreply of <smtplib.SMTP instance>>
*/usr/lib64/python2.4/smtplib.py in getreply(self=<smtplib.SMTP instance>)**349 * * * * * * if line == ':**350 * * * * * * * * self.close()**351 * * * * * * * * raise SMTPServerDisconnected("Connection unexpectedly closed")
**352 * * * * * * if self.debuglevel > 0: print>>stderr, 'reply:', repr(line)**353 * * * * * * resp.append(line[4:].strip())global SMTPServerDisconnected = <class smtplib.SMTPServerDisconnected>
SMTPServerDisconnected: Connection unexpectedly closed*** * *args = ('Connection unexpectedly closed',)
Notice that line:
code undefined, msg = 'getaddrinfo returns an empty list',*

What up? How do I get an address to return?TIA,Susan
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 07:40 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org