The simple controller says this:
record = get_email_record()
approved_suppliers = get_approved_suppliers(record.products.id)
mail.settings.server = 'logging'
mail.settings.sender = '[email protected]'
mail.settings.login = False
mail.send(
to =['[email protected]'],
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: [email protected]
To: Requisition Number 5 for Product_0
Subject: [email protected]
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
--