The simple controller says this: record = get_email_record() approved_suppliers = get_approved_suppliers(record.products.id) mail.settings.server = 'logging' mail.settings.sender = 'foobar....@gmail.com' mail.settings.login = False mail.send( to =['jrandomu...@example.com'], subject='Requisition Number %s for %s' %( record.requisitions.id, record.products.name, ), message = build_message(record, approved_suppliers) )
The email in the console as the "to" and "subject" fields transposed, like this. WARNING:web2py:email not sent ---------------------------------------- From: foobar....@gmail.com To: Requisition Number 5 for Product_0 Subject: jrandomu...@example.com This is happening on 1.99.2. I'm downloading a fresh zipball of 1.99.7 even as I type this, so I'm going to try the code on the latest stable. Still, this is strange. Does anybody know what's going on? Thanks, Cliff Kachinske --