On Sunday, June 4, 2017 at 9:54:03 AM UTC-7, e27...@gmail.com wrote:
>
>
> Since mail.send() return False or True, there is no error here. I am not 
> sur we can log any error here.
>
> How could I get the same "Warning" information that I can have through the 
> local Web2py console which displays the real reason why an email is not 
> sent ?
>

Massimo is saying that mail.send will put the error information in your log 
file if you enable logging in your application.   In addition to the 
stackoverflow reference he provided, there's a short section in the book

<URL:http://web2py.com/books/default/chapter/29/04/the-core#Logging>

It's easy enough to do ... I've managed it, despite being attached to 
"print" statements.
And you should be able to get the failure information you need from the 
logs,
without having to set up a remote console.

/dps


-- 
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.

Reply via email to