Administrative prohibition error when sending email

Lad python at hope.cz
Thu Aug 4 05:30:45 EDT 2005


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




More information about the Python-list mailing list