DDarko added the comment: The problem is that this is not my SMTP server. I want to connect as a client with smtplib. For this, as I said earlier it is mx.google.com
send: 'ehlo [127.0.1.1]\r\n' reply: b'250-mx.google.com at your service, [MYIP]\r\n' reply: b'250-SIZE 35882577\r\n' reply: b'250-8BITMIME\r\n' reply: b'250-STARTTLS\r\n' reply: b'250 ENHANCEDSTATUSCODES\r\n' reply: retcode (250); Msg: b'mx.google.com at your service, [MYIP]\nSIZE 35882577\n8BITMIME\nSTARTTLS\nENHANCEDSTATUSCODES' send: 'mail FROM:<EMAIL> size=448\r\n' reply: b'250 2.1.0 OK o7si11249316wiz.31\r\n' reply: retcode (250); Msg: b'2.1.0 OK o7si11249316wiz.31' send: 'rcpt TO:<EMAIL>\r\n' reply: b'250 2.1.5 OK o7si11249316wiz.31\r\n' reply: retcode (250); Msg: b'2.1.5 OK o7si11249316wiz.31' send: 'data\r\n' reply: b'354 Go ahead o7si11249316wiz.31\r\n' reply: retcode (354); Msg: b'Go ahead o7si11249316wiz.31' data: (354, b'Go ahead o7si11249316wiz.31') send: b'Content-Type: multipart/related; boundary="===============0969887089=="\r\nMIME-Version: 1.0\r\nFrom: ....\r\n\r\n--===============0969887089==--\r\n.\r\n' reply: b'550-5.7.1 [MYIP 7] Our system has detected that this message is\r\n' reply: b'550-5.7.1 likely unsolicited mail. To reduce the amount of spam sent to Gmail,\r\n' reply: b'550-5.7.1 this message has been blocked. Please visit\r\n' reply: b'550-5.7.1 http://support.google.com/mail/bin/answer.py?hl=en&answer=188131 for\r\n' reply: b'550 5.7.1 more information. o7si11249316wiz.31\r\n' reply: retcode (550); Msg: b'5.7.1 [MYIP 7] Our system has detected that this message is\n5.7.1 likely unsolicited mail. To reduce the amount of spam sent to Gmail,\n5.7.1 this message has been blocked. Please visit\n5.7.1 http://support.google.com/mail/bin/answer.py?hl=en&answer=188131 for\n5.7.1 more information. o7si11249316wiz.31' data: (550, b'5.7.1 [MYIP 7] Our system has detected that this message is\n5.7.1 likely unsolicited mail. To reduce the amount of spam sent to Gmail,\n5.7.1 this message has been blocked. Please visit\n5.7.1 http://support.google.com/mail/bin/answer.py?hl=en&answer=188131 for\n5.7.1 more information. o7si11249316wiz.31') send: 'rset\r\n' --- Connection unexpectedly closed ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16005> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com