I was able to get Sycamore to send mail using Gmail with TLS by  
making a few minor changes to util.mail. Here's the diff:

Index: mail.py
===================================================================
--- mail.py     (revision 880)
+++ mail.py     (working copy)
@@ -64,13 +64,17 @@
          # no message-id. if you still have py 2.2.1, you like it  
old and broken

      try:
-        server = smtplib.SMTP(config.mail_smarthost, 25, config.domain)
+        server = smtplib.SMTP(config.mail_smarthost,  
config.mail_port, config.domain)
          try:
+            if config.use_tls:
+                server.ehlo()
+                server.starttls()
+                server.ehlo()
              #server.set_debuglevel(1)
-            if config.mail_login:
-                user, pwd = config.mail_login
+            if config.mail_smarthost_auth:
+                user, pwd = config.mail_smarthost_auth
                  server.login(user, pwd)
-            server.sendmail(mail_from, to, msg.as_string())
+                server.sendmail("PrintWiki Project", to,  
msg.as_string())
          finally:
              try:
                  server.quit()

I added a 2 options to sycamore_config:

mail_port and use_tls
_______________________________________________
Sycamore-Dev mailing list
[EMAIL PROTECTED]
http://www.projectsycamore.org/
https://tools.cernio.com/mailman/listinfo/sycamore-dev

Reply via email to