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
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)
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
3 matches
Mail list logo