Unable to send mail in web2py

222 views
Skip to first unread message

Sai Harsh Tondomker

unread,
Aug 16, 2015, 11:24:42 AM8/16/15
to web2py-users
mail = auth.settings.mailer
mail.settings.server = 'smtp.gmail.com:587'
mail.settings.sender = '****devel...@gmail.com'
mail.settings.login = '****devel...@gmail.com:*******'

## configure auth policy
auth.settings.registration_requires_verification = True
auth.settings.registration_requires_approval = False
auth.settings.reset_password_requires_verification = True

I am unable to send mail using gmail account, Please help me to solve the problem.

Massimo Di Pierro

unread,
Aug 16, 2015, 4:42:02 PM8/16/15
to web2py-users
Does it log anything to the console? The usual problem is that Google no longer accepts SMTP requests from arbitrary servers and requires an additional verification step. Usually the error message you get contains the link with the google instructions.

Sai Harsh Tondomker

unread,
Aug 17, 2015, 4:05:00 AM8/17/15
to web...@googlegroups.com
I seen in terminal it give error message as 

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

Ever I tried by changing sever address but same result.

--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/X-5TL9YorDA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sai Harsh Tondomker

unread,
Aug 18, 2015, 5:33:26 AM8/18/15
to web2py-users
Now it's giving this error after removing line mail.settings.tls = False

WARNING:web2py:Mail.send failure:(534, '5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbtMf\n5.7.14 yjR9eyPl8zjJCYkZZ4U0vKUdwfRlMVYAq1Ae5LpVRVOlNygjzl20GZA0bo6aSlHc4hpN6E\n5.7.14 LPqhR1-reLXwqByxITlg6K_OQwdxLQ_iSbwvcqp7VuNTzUAmu59BLKwnYgt1fk8nQTud-V\n5.7.14 MPEG5KEqRwqPm7piuQ1NnHrXW7LJNA4bAsgSbC5giyFauUVDuqrBsfmM3GDulUKr1SArvA\n5.7.14 NynKI_fJLIi9oFoARvPbGXrZ0h78> Please log in via your web browser and\n5.7.14 then try again.\n5.7.14  Learn more at\n5.7.14  https://support.google.com/mail/answer/78754 mv4sm13580749pdb.51 - gsmtp')
WARNING:web2py:Mail.send failure:(534, '5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbvK1\n5.7.14 _5WDk7xz6wHyGhtHtEEfYYilaHoMyzE0sPcKMdH6sql0De0HJi6QOVwVBdyV1uVHkuXKq9\n5.7.14 YIfLK40SvqQ7cqG9uAkWTlecFAY6ywrjehnQAkHjJeihN0f8ejLxKic1LiVZiTNO91yOdY\n5.7.14 CpFl4HiEFNThlXiHdN0w_ufNM1pRehnR5wYYX-NZUcc06cAp4JNj9W8ykH-n2SzacCsFGv\n5.7.14 OuqMDVwhplfXeMhTBt6BxNhV_Rwc> Please log in via your web browser and\n5.7.14 then try again.\n5.7.14  Learn more at\n5.7.14  https://support.google.com/mail/answer/78754 fa1sm17374364pbb.35 - gsmtp')
WARNING:web2py:Mail.send failure:(534, '5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbukP\n5.7.14 e1dwFga1Ymr7_Xs9s2LOkzxtPSkibqER4Vrrx7jVetQOf3uVn6XwSsXNLRURO97BI6hpc8\n5.7.14 pJwK5sZddAacrwRCWuPzc93o_yGePANW2oQAwRsH67T3Yl9ceWrAvYFpHSicQ7NTXCA8wh\n5.7.14 E8ME7BVB8YJ8zh5_vPCdk4zlSx7G-WgB1TQrsyQY5cTFo5UOtNIdMt2Lo_QbqfEZK-t029\n5.7.14 pDvIetHcOsZ07zOYlZe7fKEQhwhY> Please log in via your web browser and\n5.7.14 then try again.\n5.7.14  Learn more at\n5.7.14  https://support.google.com/mail/answer/78754 os7sm17376666pbb.23 - gsmtp')

Please help me to solve the problem it's urgent, I have completed the project the delay is due to this.
Reply all
Reply to author
Forward
0 new messages