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: '+
I use a new webhosting provider and I can not send an email from my
script.
This is the script that I use to test the connection
###
import smtplib,poplib,
#I first login to my POP3 account
M=poplib.POP3('www.mywebh.com')
M.user('MYWeb)
M.pass_('12345')
print M.pass_ #check