Rob,
Thanks for the patch. I've committed it, minus the print statement.
(r51950)
Robert
On Oct 17, 2007, at 7:41 AM, Rob Knapp wrote:
My smtp server requires authentication, and when I attempted to use
listen I kept getting 550 errors.
Digging into content/mailinglist.py, I found what I think is the
problem. It looks like if TransactionalMailhost is None, then
smtplib is called w/o checking for username/password.
The following patch is working for me, but I'm not sure if it is
general useful.
--- old/mailinglist.py 2007-10-17 06:27:24.000000000 -0500
+++ new/mailinglist.py 2007-10-17 06:26:59.000000000 -0500
@@ -839,6 +839,9 @@
TransactionalMailHost._send(returnpath, maillist
[0:batch], newMail)
else:
smtpserver = smtplib.SMTP(mh.smtp_host, int
(mh.smtp_port))
+ print dir(mh)
+ if mh.smtp_userid:
+ smtpserver.login(mh.smtp_userid, mh.smtp_pass)
smtpserver.sendmail(returnpath, maillist[0:batch],
newMail)
smtpserver.quit()
--
Archive: http://www.openplans.org/projects/listen/lists/listen-dev/
archive/2007/10/1192621283850
To unsubscribe send an email with subject unsubscribe to listen-
[EMAIL PROTECTED] Please contact listen-dev-
[EMAIL PROTECTED] for questions.
!DSPAM:4021,4715f51084241030819293!
--
Archive:
http://www.openplans.org/projects/listen/lists/listen-dev/archive/2007/10/1192631248859
To unsubscribe send an email with subject unsubscribe to [EMAIL PROTECTED]
Please contact [EMAIL PROTECTED] for questions.