473,387 Members | 1,561 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

smtplib data error

Does anyone know what causes an SMTPLIB DataError?

The only thing I can find in the manual is
exception SMTPDataError
The SMTP server refused to accept the message data.

My problem is a previously functioning script suddenly failed last week.
My ISP thinks it maybe something to do with upgrading CPanel on their
server -- maybe a library was missed, but when I try and execute a
script I get...

Traceback (most recent call last): File "test-py.cgi", line 790, in ?
sendemail(EmailFrom, EmailTo, emsg) File "test-py.cgi", line 20, in
sendemail failed = server.sendmail(EmailFrom, EmailTo, emsg) File
"/usr/lib/python2.2/smtplib.py", line 685, in sendmail raise
SMTPDataError(code, resp) smtplib.SMTPDataError: (550, 'Administrative
prohibition')

Thanks for any suggestions.

Lester.
Jul 18 '05 #1
3 4644
If the drugs i got are still working, `550' error code stands "No soup for
you!!" (Relaying Denied). Maybe the IP in your web server is not into the
sendmail's access configuration file.

Gerardo
Does anyone know what causes an SMTPLIB DataError?

The only thing I can find in the manual is
exception SMTPDataError
The SMTP server refused to accept the message data.

My problem is a previously functioning script suddenly failed last week.
My ISP thinks it maybe something to do with upgrading CPanel on their
server -- maybe a library was missed, but when I try and execute a
script I get...

Traceback (most recent call last): File "test-py.cgi", line 790, in ?
sendemail(EmailFrom, EmailTo, emsg) File "test-py.cgi", line 20, in
sendemail failed = server.sendmail(EmailFrom, EmailTo, emsg) File
"/usr/lib/python2.2/smtplib.py", line 685, in sendmail raise
SMTPDataError(code, resp) smtplib.SMTPDataError: (550, 'Administrative
prohibition')

Thanks for any suggestions.

Lester.


--
Gerardo Herzig
Departamento de Proyectos Especiales e Internet
Facultad de Medicina
U.B.A.

Jul 18 '05 #2
Gerardo Herzig -Departamento de Proyectos Especiales e Internet-
Facultad de Medicina wrote:
If the drugs i got are still working, `550' error code stands "No soup for
you!!" (Relaying Denied). Maybe the IP in your web server is not into the
sendmail's access configuration file.

Gerardo

Does anyone know what causes an SMTPLIB DataError?

The only thing I can find in the manual is
exception SMTPDataError
The SMTP server refused to accept the message data.

My problem is a previously functioning script suddenly failed last week.
My ISP thinks it maybe something to do with upgrading CPanel on their
server -- maybe a library was missed, but when I try and execute a
script I get...

Traceback (most recent call last): File "test-py.cgi", line 790, in ?
sendemail(EmailFrom, EmailTo, emsg) File "test-py.cgi", line 20, in
sendemail failed = server.sendmail(EmailFrom, EmailTo, emsg) File
"/usr/lib/python2.2/smtplib.py", line 685, in sendmail raise
SMTPDataError(code, resp) smtplib.SMTPDataError: (550, 'Administrative
prohibition')

Thanks for any suggestions.

Lester.


Thanks, it turns out that the ISP upgraded their smtp server software
which breaks smtplib, I guess. They suggest I use sendmail. The
traceback above though seems to suggest that smtplib uses sendmail, so I
don't know whether this will resolve or not

Thanks again for your suggestions
Lester
Jul 18 '05 #3
yazzoo wrote:
Traceback (most recent call last): File "test-py.cgi", line 790, in ?
sendemail(EmailFrom, EmailTo, emsg) File "test-py.cgi", line 20, in
sendemail failed = server.sendmail(EmailFrom, EmailTo, emsg) File
"/usr/lib/python2.2/smtplib.py", line 685, in sendmail raise
SMTPDataError(code, resp) smtplib.SMTPDataError: (550, 'Administrative
prohibition')

The traceback above though seems to suggest that smtplib uses sendmail


No it doesn't. Rather it suggests there is a method on the
server object called sendmail() and that it is raising the
exception shown. You can check the source: smtplib.py is
right there on your hard drive.

-Peter
Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: David Hughes | last post by:
I wonder if anyone can help me resolve this problem. Although my ISP (One and One) provides the facility to run Python 2.2 CGI programs, their technical support people don't seem to have any Python...
6
by: stewart.midwinter | last post by:
I'm having problem with a script that used to work under Win2k but is now broken after an install of WinXP Pro. I can no longer connect to a local mail server. Has anyone else seen this? If so,...
6
by: Matthias Kluwe | last post by:
Hi! After getting a @gmail.com address, I recognized I had to use TLS in my python scripts using smtplib in order to get mail to the smtp.gmail.com server. Things work well so far, apart from...
3
by: Van_Gogh | last post by:
Hi, I am learning how to use the smtplib module, but am having some very early problems, maybe because I don't understand it. So, am I correct that by following the example in the Python: >>>...
0
by: Roger | last post by:
I am having a problem sending email through smtp.gmail.com using smtplib. Everything works and the mail is sent and received, except quit. The following shows the problem (without bothering to...
2
by: ornto | last post by:
Hi, I'm trying to create an application which checks a dynamic web site and on certain events sends an email to me. My problem though is with the email task. By now I made this simple test code: ...
0
by: 7stud | last post by:
On May 17, 12:18 pm, cher <cheryl.gi...@comcast.netwrote: Can you get the following program to work? #Uses gmail to send an email to someone import smtplib sender = "Tom"
5
by: zxo102 | last post by:
Hi, I am trying to use python module smtplib to send my email out on window xp (localhost). import smtplib server = smtplib.SMTP('localhost') but I got the error information as follows: ...
1
by: Hunter | last post by:
I am writing a script that needs to send some emails. And I've used smtplib in the past and it is pretty easy. But I thought, gee it would be easier if I could just call it as a function, passing...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.