Yup, you need to change "logging" to the smtp gmail server, in other words, 
switch them around (put the smtp first followed by logging).

Logging will print the email in the console, which you can use to check the 
contents.

On Sunday, August 17, 2014 1:50:05 PM UTC+8, Alex Glaros wrote:
>
> on PythonAnywhere, I get "email not sent error"
>
> did I do anything wrong?
>
> ## configure email
> mail = auth.settings.mailer
> mail.settings.server = 'logging' or 'smtp.gmail.com:587'
> mail.settings.sender = '[email protected] <javascript:>'         # your 
> email
>
> 2014-08-17 04:51:36,559 :email not sent
> ----------------------------------------
> From: [email protected] <javascript:>
> To: [email protected] <javascript:>
> Subject: Password reset
>
> Click on the link 
> https://alexglaros.pythonanywhere.com/engagementSquared/default/user/reset_password/140
>  to reset your password
> ----------------------------------------
>
>
> 2014-08-17 04:48:48 announcing my loyalty to the Emperor...
> 2014-08-17 04:51:36 WARNING:web2py:email not 
> sent#012----------------------------------------#012From: 
> [email protected]#012To: [email protected]#012Subject: Password 
> reset#012#012Click on the link 
> https://alexglaros.pythonanywhere.com/engagementSquared/default/user/reset_password9ce8cd5
>  
> to reset your password#012----------------------------------------
>
> thanks,
>
> Alex Glaros
>
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to