Re: [web2py] Re: Problem sending mails in web2py: Mail.send failure:[SSL: WRONG_VERSION_NUMBER]

2020-05-30 Thread Dave S


On Wednesday, May 27, 2020 at 12:18:52 AM UTC-7, VJ Sosa wrote:
>
> 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.
>

Glad you figured it out, and now we have something for the archives.

/dps
 

> [smtp]
> server = smtp.gmail.com: 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 > 
> 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 
>> web...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/752f15b6-8837-4862-a866-f6804d064990%40googlegroups.com
>>  
>> 
>> .
>>
>
>
> -- 
> 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/829db3a5-f574-4ee8-8ad5-e8686e7676cb%40googlegroups.com.


Re: [web2py] Re: Problem sending mails in web2py: Mail.send failure:[SSL: WRONG_VERSION_NUMBER]

2020-05-27 Thread VJ Sosa
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: 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  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
> 
> .
>


-- 
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.


[web2py] Re: Problem sending mails in web2py: Mail.send failure:[SSL: WRONG_VERSION_NUMBER]

2020-05-26 Thread Dave S


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 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/752f15b6-8837-4862-a866-f6804d064990%40googlegroups.com.


[web2py] Problem sending mails in web2py: Mail.send failure:[SSL: WRONG_VERSION_NUMBER]

2020-05-20 Thread VJ Sosa
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.

-- 
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/d822862f-5533-4fa1-8945-3e57c79d3fd4%40googlegroups.com.


[web2py] Mail.send failure

2015-06-13 Thread webpypy
Hi :

I got the error

error 10013
An attempt was made to access a socket in a way forbidden by its access 
permissions.

what is the cause?

sender is in the format x.y...@gmail.com ( I mean there are two dots). 
Is this a problem?

Regards,

Ashraf

 

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