I solved the problem. The reason was uncomplete email message msg should be like this
timezone = ' %+03d%02d' % (-time.timezone/3600, time.timezone%3600) MessageSubject="This is a subject" BodyMessage="This is a body" msg='From: '+fromaddr+' <'+fromaddr+'>\nTo: '+toaddrs+'<'+toaddrs+'>\nDate: '+ time.strftime('%a, %d %b %Y %H:%M:%S', time.localtime(time.time()))+timezone+'\nSubject: '+MessageSubject+'\nReply-to: '+toaddrs+'\nX-Mailer: Microsoft Outlook Express 5.50.4133.2400\n\n'+BodyMessage -- http://mail.python.org/mailman/listinfo/python-list