mail.send() is pretty easy. what's the structure of your "mail" table ?
assuming you have a query for mails ready to be sent, e.g. db((db.mails.send_after > request.now) & (db.mails.sent == False)).select() , all that it takes is all_mails = db((db.mails.send_after > request.now) & (db.mails.sent == False)).select() for row in all_mails: mail.send(to=row.to, ....) row.update_record(row.sent=True) On Monday, May 2, 2016 at 9:57:37 PM UTC+2, Luis Guerra wrote: > > Hello, I'm new in Web2py and I need that my site sends an email once per > day depend o a due date in a table of my database. I want to send the > emails to the email address in the same table. > > Best regards, > > Luis > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.