I read in your configuration file that TurboMail is preferred so I
went ahead and installed that:
easy_install TurboMail (seemed ok)
I added following to the dev.cfg:
mail.on = True
mail.server = 'www.hotmail.com'
mail.username = blahbl...@hotmail.com
mail.password = 'blahblah'
I indeed can get the login and logout to work. I also can get the
registration form up, fill it out, etc. I get an error however as
follows:
-----------------------------------------------------------
500 Internal error
The server encountered an unexpected condition which prevented it from
fulfilling the request.
Page handler: <bound method UserRegistration.create of
<watcher5.register_controllers.UserRegistration object at 0x016A9A50>>
Traceback (most recent call last):
File "C:\Python25\lib\site-packages\cherrypy-2.2.1-py2.5.egg\cherrypy
\_cphttptools.py", line 105, in _run
self.main()
File "C:\Python25\lib\site-packages\cherrypy-2.2.1-py2.5.egg\cherrypy
\_cphttptools.py", line 254, in main
body = page_handler(*virtual_path, **self.params)
File "<string>", line 3, in create
File "C:\Python25\lib\site-packages\turbogears-1.0.4b1-py2.5.egg
\turbogears\controllers.py", line 344, in expose
*args, **kw)
File "<string>", line 5, in run_with_transaction
File "C:\Python25\lib\site-packages\turbogears-1.0.4b1-py2.5.egg
\turbogears\database.py", line 316, in so_rwt
retval = func(*args, **kw)
File "<string>", line 5, in _expose
File "C:\Python25\lib\site-packages\turbogears-1.0.4b1-py2.5.egg
\turbogears\controllers.py", line 359, in <lambda>
mapping, fragment, args, kw)))
File "C:\Python25\lib\site-packages\turbogears-1.0.4b1-py2.5.egg
\turbogears\controllers.py", line 386, in _execute_func
output = errorhandling.try_call(func, *args, **kw)
File "C:\Python25\lib\site-packages\turbogears-1.0.4b1-py2.5.egg
\turbogears\errorhandling.py", line 72, in try_call
return func(self, *args, **kw)
File "<string>", line 3, in create
File "C:\Python25\lib\site-packages\turbogears-1.0.4b1-py2.5.egg
\turbogears\controllers.py", line 181, in validate
return errorhandling.run_with_errors(errors, func, *args, **kw)
File "C:\Python25\lib\site-packages\turbogears-1.0.4b1-py2.5.egg
\turbogears\errorhandling.py", line 110, in run_with_errors
return func(self, *args, **kw)
File "C:\data\turbogears\watcher5\watcher5\register_controllers.py",
line 73, in create
self.mail_new_validation_email(pend)
File "C:\data\turbogears\watcher5\watcher5\register_controllers.py",
line 164, in mail_new_validation_email
body % {'validation_url': url})
File "C:\data\turbogears\watcher5\watcher5\register_controllers.py",
line 382, in send_email
smtp = smtplib.SMTP(self.smtp_server, self.smtp_port)
File "C:\Python25\lib\smtplib.py", line 244, in __init__
(code, msg) = self.connect(host, port)
File "C:\Python25\lib\smtplib.py", line 311, in connect
(code, msg) = self.getreply()
File "C:\Python25\lib\smtplib.py", line 355, in getreply
raise SMTPServerDisconnected("Connection unexpectedly closed")
SMTPServerDisconnected: Connection unexpectedly closed
---------------------------------------------
Now the potentially stupid part. I don't think I can access my SMTP
account at webfaction form a remote PC, as they only allow their own
servers access to email system??? That is my belief, so I also tried
using my hotmail account. Then I though maybe I am missing on that
also, so I added the last two lines below to my dev.cfg file.
mail.on = True
mail.server = 'www.hotmail.com'
mail.username = 'blahbl...@hotmail.com'
mail.password = 'blahblah
mail.testmode = True
mail.debug = True
NOTE: These last two seem to have no effect on anything. I don't see
any debug info and it is obviously still trying to email out.
Anyway, I am asking for advice.
1. Should I dump using the PC as development and start using
webfaction account?
2. If I should/can use PC, is there an easy SMTP thing I can load here
(I know how to do it on Linux but not Windows :-)
3. Is there something else I shoudl be doing to make TurboMail work
with Registration???? Like import statements in anyo fthe various .py
files? How does it know not to use the mail configurations in its own
cfg file (it says it will ignore them but how?).
4. My strategy at this point is to get the user registration and login
part working on this fresh, clean project, then slowly integrate all
of my stuff back in one by one, testing that it keeps working at each
baby step.
I appreciate any guidance. I am sure it is 99.99% something that is
obvious and my fault, but I just don't know how to debug it.
Jamie