web2py and sparkpost : :Mail.send failure:SMTP AUTH extension not supported by server

199 views
Skip to first unread message

icodk

unread,
Jul 24, 2016, 10:52:17 AM7/24/16
to web2py-users
I try to use sparkpost with web2py. However I get the following error:
WARNING:web2py:Mail.send failure:SMTP AUTH extension not supported by server.
More info:
1. I can successfully send mails with python so my API key and domain settings in sparkpost are set right.
2. In web2py I use the following settings:
mail = auth.settings.mailer
mail.settings.server = 'smtp.sparkpostmail.com'
mail.settings.sender = 'mym...@mydomain.com'
mail.settings.login =  'SMTP_Injection:6cac88c501995821029388150fd5896bab8ac136'

Thanks in advance

Mirek Zvolský

unread,
Jul 25, 2016, 9:07:47 AM7/25/16
to web...@googlegroups.com
Try the port :587 setting.
My settings are:
[smtp]
server
= smtp.sparkpostmail.com:587
sender
= xxxx@xxxx.eu
login
= SMTP_Injection:4d..92




Dne neděle 24. července 2016 16:52:17 UTC+2 icodk napsal(a):

Mirek Zvolský

unread,
Jul 25, 2016, 9:11:20 AM7/25/16
to web2py-users
Such setting format is from private/appconfig.ini.
In db.py I have:
mail = auth.settings.mailer
mail
.settings.server = 'logging' if request.is_local else myconf.take('smtp.server')
mail
.settings.sender = myconf.take('smtp.sender')
mail
.settings.login = myconf.take('smtp.login')




Dne pondělí 25. července 2016 15:07:47 UTC+2 Mirek Zvolský napsal(a):

icodk

unread,
Jul 25, 2016, 9:25:58 AM7/25/16
to web2py-users
Thank It is working now
Reply all
Reply to author
Forward
0 new messages