PDA

View Full Version : SMTPDataError'>: (550, 'Administrative prohibition')



mochaman
05-08-2009, 11:37 PM
I am getting this error when trying to send mail via python using sendmail. I have read through the forum posts but nothing seems applicable since I cannot even send 1 message (everything posted seems to point to a limit on the # of emails sent).

Any ideas?

Here is the code snippet:

fromaddr = 'validemailaddr@mydomain.com'
toaddr = 'mochaman@nonbhdomain.com'
PUDate = str(PUMonth)+"-"+str(PUDay)+"-"+str(PUYear)+" at "+str(PUTime)
msg = "Cake order for "+str(PUDate)

server = smtplib.SMTP('mail.mydomain.com',26)
server.set_debuglevel(1)
server.ehlo()
server.login('validemailaddr@mydomain.com','somepa ssword')
server.ehlo()
server.sendmail(fromaddr,toaddr,msg)
server.quit()

Any help is appreciated. Thanks in advance.

hazzadous
08-16-2010, 06:22 AM
Did you manage to overcome this? I have the same issue.