Unable to send mail using gmail.com in web2py

526 views
Skip to first unread message

Sai Harsh Tondomker

unread,
Aug 16, 2015, 11:26:03 AM8/16/15
to web2py-users
mail = auth.settings.mailer
mail.settings.server = 'smtp.gmail.com:587'
mail.settings.sender = 'crazydev...@gmail.com'
mail.settings.login = 'crazydev...@gmail.com:saiharshvipin'

## 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 email verification using gmail account please help me to solve the problem.

Ovidio Marinho

unread,
Aug 16, 2015, 1:16:26 PM8/16/15
to web...@googlegroups.com





                   http://itjp.net.br
                     http://itjp.net.br
          Ovidio Marinho Falcao Neto
                 ovid...@gmail.com

                            Brasil
            

--
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+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sai Harsh Tondomker

unread,
Aug 16, 2015, 2:03:47 PM8/16/15
to web...@googlegroups.com
I tried it still saying unable to send mail 

mail = auth.settings.mailer
mail.settings.server = 'smtp.gmail.com:587'
mail.settings.sender = 'crazydev...@gmail.com'
mail.settings.login = None
mail.settings.tls = False
## configure auth policy
auth.settings.registration_requires_verification = True
auth.settings.registration_requires_approval = False
auth.settings.reset_password_requires_verification = True

Even I have uploaded all require files.

Please could you suggest any other solution.


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/iBvGhDc4t5I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.

Jose de Soto

unread,
Jul 5, 2016, 5:54:00 AM7/5/16
to web2py-users
Maybe too late, but I just found Google has added many security improvements. In my case the emails stop working. To fix it I have done:

1- Enable less secure apps: https://www.google.com/settings/security/lesssecureapps
2- Unlock Captcha for the account: https://accounts.google.com/DisplayUnlockCaptcha

I hope it helps...

Sai Harsh Tondomker

unread,
Jul 5, 2016, 6:13:54 AM7/5/16
to web...@googlegroups.com
Thanks for replying.
Yes this was the solution, I used to solve the problem.😊




Sent with MailTrack
Reply all
Reply to author
Forward
0 new messages