The thing is that the error doesn't seem to have anything to do with the the code I wrote.
Here is the traceback: Version web2py™ Version 2.13.4-stable+timestamp.2015.12.26.04.59.39Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. Traceback (most recent call last): File "/home/vgr2/web2py/gluon/restricted.py", line 227, in restricted exec ccode in environment File "/home/vgr2/web2py/applications/quiz_app/controllers/default.py" <http://127.0.0.1:8000/admin/default/edit/quiz_app/controllers/default.py>, line 642, in <module> File "/home/vgr2/web2py/gluon/globals.py", line 412, in <lambda> self._caller = lambda f: f() File "/home/vgr2/web2py/applications/quiz_app/controllers/default.py" <http://127.0.0.1:8000/admin/default/edit/quiz_app/controllers/default.py>, line 522, in thankyou if mail.send([candidate.email], subject, message, []): File "/home/vgr2/web2py/gluon/tools.py", line 745, in send payload = payload_in UnboundLocalError: local variable 'payload_in' referenced before assignment This is very confusing to me, been at this for a while now. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.