I can send email locally from my desktop but I am having issues send ing 
email through python anywhere. I have the gmail set up as "allowing less 
secure app" and below is the set up. Any help will be much appreciated. 


#-----------------------------
------------------------------
in db.py I have
mail = auth.settings.mailer
mail.settings.server = 'smtp.gmail.com:587'
mail.settings.sender = ''
mail.settings.login = 'rchxxx...@gmail.com:pas###wrd'  
#--------------------------------------------------------------------------

#----------------------------------------------------------------------------------

in apconfig.ini (don't know if it matters)

; App configuration

; db configuration
[db]
uri       = sqlite://storage.sqlite
migrate   = 1
pool_size = 1


; smtp address and credentials
[smtp]
server = smtp.gmail.com:587
sender = ''
login  = rch####2...@gmail.com:pass##wd

; general app data
[global]
owner = Me
site  = http://mysite.pythonanywhere.com/mysite/

; form styling
[forms]
formstyle = bootstrap3_inline
separator =

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