mail.settings.server = 'logging'

only logs but does not send emails.
PythonAnywhere does not run any smtp server so you have to use an external 
one for example gmail:

mail.settings.server = 'smtp.gmail.com:587'

You need to configure that with your username and password. You also have 
to tell gmail to allow your app to connect to it via smtp.


On Sunday, 17 August 2014 00:50:05 UTC-5, 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 = 'a...@gmail.com'         # your email
>
> 2014-08-17 04:51:36,559 :email not sent
> ----------------------------------------
> From: a...@gmail.com
> To: a...@gmail.com
> 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: 
> alex...@gmail.com#012To: a...@gmail.com#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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to