#3486: notify has no support for smtplib local_host parameter
-------------------------------+--------------------------------------------
 Reporter:  [EMAIL PROTECTED]  |       Owner:  jonas             
     Type:  defect             |      Status:  new               
 Priority:  normal             |   Milestone:                    
Component:  general            |     Version:  0.9.5             
 Severity:  normal             |    Keywords:  notification, smtp
-------------------------------+--------------------------------------------
 The constructor for an SMTP object in smtplib takes an optional 3rd
 parameter, 'local_hostname', otherwise it will execute the following line
 in smtplib.py:

 {{{
 #!python
 addr = socket.gethostbyname(socket.gethostname())
 }}}

 which always fails on my system, because my hostname is not fully-
 qualified.  I've only been able to successfully send mail using smtplib
 when I set the local_hostname parameter.

 However, Notify.py, has no way of setting this:

 {{{
 #!python
 def begin_send(self):
     self.server = smtplib.SMTP(self.smtp_server, self.smtp_port)
 }}}

 (only the first two parameters are used)

 It should be possible to specify the third parameter of this constructor
 from trac.ini.

-- 
Ticket URL: <http://trac.edgewall.org/ticket/3486>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets

Reply via email to