[web2py] Re: Dreamhost deployment

2016-10-23 Thread 4ringmaster
It's been a while since this thread had seen any traffic but I was trying to deploy on dreamhost and ran into the same problem. I found this which solved it: https://github.com/web2py/web2py/issues/1413 In passenger_wsgi.py, web2py overwrites stdout with stderr but Passenger needs stdout to ta

[web2py] Re: Problem sending emails. Various errors from different Ports

2016-07-28 Thread 4ringmaster
It probably would have worked with the way used in the book, but to get it to work I had to create a new gmail account, and use the smtplib for python. My code ended up looking like: import smtplib def send_contact_form(): message = "Test" mail = smtplib.SMTP('smtp.gmail.com', 587)

[web2py] Problem sending emails. Various errors from different Ports

2016-07-26 Thread 4ringmaster
This is my code: from gluon.tools import Mail mail = Mail() mail.settings.server = 'smtp.gmail.com:465' mail.settings.sender = 'sending-em...@gmail.com' mail.settings.login = 'sending-email:password' mail.settings.ssl = True mail.settings.tls = True @auth.requires_signature() def send_contact_f