Guys I figured out how to solve this bug ...
in my version of web2py 1.99.2 changed in the file "db.py" line:
email = auth.settings.mailer

to:
mail = Mail ()

Em sexta-feira, 17 de agosto de 2012 18h25min44s UTC-3, Cliff Kachinske 
escreveu:
>
> 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] <javascript:>'
>     mail.settings.login = False
>     mail.send(
>             to =['[email protected] <javascript:>'],
>             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
>
>

-- 



Reply via email to