24 Jan
2000
24 Jan
'00
1:02 a.m.
I was having lots of trouble with <dtml-sendmail>, and I investigated the code for MailHost. Instead of using the excellent smtplib module (that ships with Python) to send EMail, the folks at DC decided to write their own, using sockets. The attatched patch replaces 100+ lines of socket-based code with 2 line calls to smtplib. I think that this will improve the reliability of MailHost dramatically. As a side effect, the timeout and localhost properties of MailHosts are gone. So far, the basic <dtml-sendmail> tag works perfectly. Someone try this out and tell me what you think. -- Stephen Pitts smpitts@midsouth.rr.com webmaster - http://www.mschess.org