>
> from gluon.tools import Mail
> mail = Mail()
> mail.settings.server = 'http://127.0.0.1:8000'
> mail.settings.sender = '[email protected]'
>
You also need:
mail.settings.login = 'username:password'
row.notified = True
>
> The other odd thing is that notified stays false.
>
Changing row.notified only changes it in the Row object -- it does not
update the record in the database. You have two options:
row.notified = True
row.update_record()
or:
row.update_record(notified=True)
See http://web2py.com/books/default/chapter/29/6#update_record.
Anthony
--