[web2py] mail send error via API

2018-03-05 Thread Vikash Pandey
on commad line or using python shell This code works find and I can get email from gluon.tools import Mail # now we want to send email mail = Mail() mail.settings.server = 'smtp.gmail.com:587' mail.settings.sender = 'v...@gmail.com' mail.settings.login = 'v...@gmail.com:pass' mail.send() But i

[web2py] mail send

2015-09-18 Thread 'Diogene Laerce' via web2py-users
Hi, I redefined auth.register with some "extra_fields" as the email field for example. But now I have a "Target receiver address not specified" because I guess that the db.auth_user.email remains empty. I'd like to ask if I have to redefine mail.send to make it works or is there a simpler way to