getaddrinfo problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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 -\nMessage: 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@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux