May-15-2018, 11:43 AM
(This post was last modified: May-15-2018, 11:43 AM by darunkumar.)
Hey Lewis,
Thanks for amending my code, after including login & password getting the below error.
On a side note did you import/install any certificate?
A
Thanks for amending my code, after including login & password getting the below error.
On a side note did you import/install any certificate?
Error:reply: '220 2.0.0 SMTP server ready\r\n'
reply: retcode (220); Msg: 2.0.0 SMTP server ready
Unexpected error: <class 'ssl.SSLEOFError'>
Traceback (most recent call last):
File "./mymail.py", line 28, in <module>
server.starttls()
File "/usr/lib64/python2.7/smtplib.py", line 648, in starttls
self.sock = ssl.wrap_socket(self.sock, keyfile, certfile)
File "/usr/lib64/python2.7/ssl.py", line 936, in wrap_socket
ciphers=ciphers)
File "/usr/lib64/python2.7/ssl.py", line 611, in __init__
self.do_handshake()
File "/usr/lib64/python2.7/ssl.py", line 833, in do_handshake
self._sslobj.do_handshake()
socket.error: [Errno 104] Connection reset by peer
ThanksA