I can send email locally from my desktop but I am having issues send 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 = 'rchx...@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:587sender = ''
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 =
#-------------------------------------------------------------------------