I have the following test code: import smtplib
fromaddr = 'mksfjnsfji4433j4...@bk.ru' toaddrs = ['mksfjnsfji4433j4...@bk.ru'] msg = ("From: %s\r\nTo: %s\r\n\r\n" % (fromaddr, ", ".join(toaddrs))) msg = msg + 'test' print("Message length is " + repr(len(msg))) server = smtplib.SMTP('smtp.mail.ru', 465) server.set_debuglevel(1) server.sendmail(fromaddr, toaddrs, msg) server.quit() And when I execute it, it keeps running forever and I don't get any email. What's missing, what's wrong? The smtp server and port are correct - https://help.mail.ru/enmail-help/mailer/popsmtp I'm following this tutorial:https://docs.python.org/3/library/smtplib.html Python 3.4.2
-- https://mail.python.org/mailman/listinfo/python-list