Dear Dave, Thanks for your reply. I could fix my issue modifying the smtp server port to 465. Since the problem was related to the use of SSL, Google prefers the use of 465 port for SSL. [smtp] server = smtp.gmail.com: <http://smtp.gmail.com:587/>465 sender = myu...@gmail.com login = myuser:mypassword tls = true ssl = true
And you right, I had also to change, in my google account, an option to activate the use of less secure apps. Maybe this is not the safe way to solve this issue, but it works for me. You can On/Off the use of less secure apps in your Google account at: https://myaccount.google.com/lesssecureapps in Security section. More information about it can be found here: https://support.google.com/accounts/answer/6010255?hl=en https://support.google.com/a/answer/176600?hl=en https://www.siteground.com/kb/google_free_smtp_server/ Best regards, Víctor On Wed, May 27, 2020 at 3:42 AM Dave S <snidely....@gmail.com> wrote: > > > On Wednesday, May 20, 2020 at 6:03:34 AM UTC-7, VJ Sosa wrote: >> >> Dear all, >> >> I'm using the library to manage users in web2py (it includes functions >> such as login, profle, lost_password, etc..). >> When I try to use the function lost_password, it ask for my email to send >> me the password, but >> it can not send the email. It shows the message "Unable to send email", >> the log states: >> >> WARNING:web2py:Mail.send failure:[SSL: WRONG_VERSION_NUMBER] wrong >> version number (_ssl.c:852) >> >> I'm using the configuration ( appconfig.ini) file with this information: >> >> [smtp] >> server = smtp.gmail.com:587 >> sender = myu...@gmail.com >> login = myuser:mypassword >> tls = true >> ssl = true >> >> I'm not sure if this is an issue with the python library or if I'm >> missing something . >> Any ideas? >> >> Thansk in advance for any support! >> >> Víctor. >> > > > This sounds like a different error than I've seen in the forum before, but > gmail two-factor authentication has been an issue for some users. There is > something in the gmail options that can be turned off on a per-app basis, > if you trust my memory which you shouldn't. > > There are other mail servers available, some of which are free for small > volumes of mail (IIRC, BICBW) and some of which are suitable for bulk > mailings (legitimate ones, of course). > > /dps > > > -- > 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/hwnv_A3sdtY/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > web2py+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/web2py/752f15b6-8837-4862-a866-f6804d064990%40googlegroups.com > <https://groups.google.com/d/msgid/web2py/752f15b6-8837-4862-a866-f6804d064990%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Victor J. Sosa Sosa -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/CAFMLpefz9rAkbsYq0%2Bi6rQU3XJiFhT%2Big%3DjDie23MtfyFAfSVg%40mail.gmail.com.