[web2py] Why my mail doesn't work?

2016-01-09 Thread rgbapps1
in db.py I have: ## configure email mail = auth.settings.mailer mail.settings.server = 'smtp.gmail.com:465' mail.settings.sender = 'mym...@gmail.com' mail.settings.login = 'mym...@gmail.com:secret' in my controller I have mentioned: session.x=mail.send(to=['somem...@gmail.com'],

[web2py] Re: web2py is giving me wrong time when I am using request.now for datetime. How to get time a/c as GMT?

2016-01-12 Thread rgbapps1
thank you On Tuesday, January 12, 2016 at 12:34:47 AM UTC+5:30, Anthony wrote: > > web2py isn't giving you the "wrong" time -- it's the local time on your > server. If you want UTC, you can use request.utcnow (request.now and > request.utcnow are just datetime.datetime.now() and > datetime.date

[web2py] Re: Why I am always being redirected? How to get a response.flash instead here?

2016-01-12 Thread rgbapps1
How to do that? Can you write a chunk of code please if it doesn't bother you? On Tuesday, January 12, 2016 at 12:31:27 AM UTC+5:30, Anthony wrote: > > On Monday, January 11, 2016 at 1:03:25 PM UTC-5, RAGHIB R wrote: >> >> {{= >> x.name}} >> this in my view calls this functions: >> def my_insert_