M
Matthias Kluwe
Hi!
After getting a @gmail.com address, I recognized I had to use TLS in my
python scripts using smtplib in order to get mail to the smtp.gmail.com
server.
Things work well so far, apart from an unexpected error. Here's my
sample code:
import smtplib
server = smtplib.SMTP('smtp.gmail.com', 587)
server.ehlo()
server.starttls()
server.ehlo()
server.login('(e-mail address removed)', password)
server.sendmail("(e-mail address removed)", toaddress, message)
server.quit()
The server accepts and delivers my messages, but the last command
raises
socket.sslerror: (8, 'EOF occurred in violation of protocol')
Did I miss something? Any hint is welcome.
Regards,
Matthias
After getting a @gmail.com address, I recognized I had to use TLS in my
python scripts using smtplib in order to get mail to the smtp.gmail.com
server.
Things work well so far, apart from an unexpected error. Here's my
sample code:
import smtplib
server = smtplib.SMTP('smtp.gmail.com', 587)
server.ehlo()
server.starttls()
server.ehlo()
server.login('(e-mail address removed)', password)
server.sendmail("(e-mail address removed)", toaddress, message)
server.quit()
The server accepts and delivers my messages, but the last command
raises
socket.sslerror: (8, 'EOF occurred in violation of protocol')
Did I miss something? Any hint is welcome.
Regards,
Matthias