new to pythonanywhere.com, previously i am sending emails using smtplib from python. it was running fine when i am on my local python env. i tested python 2 and 3 both. after i joined pythonanywhere.com i switched same code here. now issue is script was running fine when i am in python2 but in python3 i faces this issue. i guess python version is not an problem. some sort of certification issue that i don't have knowledge about. here is the Traceback.
Traceback (most recent call last):
File "single.py", line 20, in <module>
smtp.starttls()
File "/usr/lib/python3.6/smtplib.py", line 770, in starttls
server_hostname=self._host)
File "/usr/lib/python3.6/ssl.py", line 401, in wrap_socket
_context=self, _session=session)
File "/usr/lib/python3.6/ssl.py", line 808, in __init__
self.do_handshake()
File "/usr/lib/python3.6/ssl.py", line 1061, in do_handshake
self._sslobj.do_handshake()
File "/usr/lib/python3.6/ssl.py", line 683, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: TLSV1_UNRECOGNIZED_NAME] tlsv1 unrecognized name (_ssl.c:749)