473,545 Members | 666 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help: retrieving e-mail from yahoo pop server. what's wrong?

Hi guys, newbie question. I am having trouble with a script that is
supposed to login me to my account on yahoo pop server. When i do this:

import getpass, poplib, re
POPHOST = "pop.mail.yahoo .com"
POPUSER = "mylogin"
POPPASS = "mypass"
pop = poplib.POP3(POP HOST)
pop.user(POPUSE R)
up to this point evertything proceeds fine, but when i do
if not POPPASS:
POPPASS = getpass.getpass ("Password for %s@%s:" % (POPUSER, POPHOST))
pop.pass_(POPPA SS)
I am being asked for password and after giving it getting
the following error:
POP3 Protocol Error: -ERR Error logging in. Please visit
http://mail.yahoo.com
Would appreciate any help or comments -- its my first day with Python :).
What am i doing wrong?
Jul 18 '05 #1
4 4676
Andre,

Do you have a premium Yahoo account? Only premium users can access
Yahoo mail via POP3. If you are a premium account holder and it still
is not working, print out your password to see if you typed the correct
password.

Have you tried accessing your Yahoo from an email client? Does that
work?

Thanks,
-Kartic

Jul 18 '05 #2
Thank, Kartic

I actually tried doing it with several other accounts, notably mail.com and
netscape.com
When i do it with netscape the dialog goes like the following:
POPHOST = 'pop3.isp.netsc ape.com'
pop = poplib.POP3(POP HOST)
POPUSER = "myusername "
pop.user(POPUSE R) '+OK' pop.pass_("mypa ssword")
Traceback (most recent call last):
File "<pyshell#5 >", line 1, in ?
pop.pass_("1234 56")
File "D:\Python24\li b\poplib.py", line 202, in pass_
return self._shortcmd( 'PASS %s' % pswd)
File "D:\Python24\li b\poplib.py", line 165, in _shortcmd
return self._getresp()
File "D:\Python24\li b\poplib.py", line 141, in _getresp
raise error_proto(res p)
error_proto: -ERR invalid username or password

The username and password are naturally valid, but something else is wrong.
Do you know if Netscape also doesn't allow POP access? Is there a free
e-mail provider who does?
Thanks a mil,

Andre

"Kartic" <ka************ ******@gmail.co m> wrote in message
news:11******** **************@ l41g2000cwc.goo glegroups.com.. . Andre,

Do you have a premium Yahoo account? Only premium users can access
Yahoo mail via POP3. If you are a premium account holder and it still
is not working, print out your password to see if you typed the correct
password.

Have you tried accessing your Yahoo from an email client? Does that
work?

Thanks,
-Kartic

Jul 18 '05 #3
Andre said the following on 2/9/2005 7:28 PM:
Thank, Kartic

I actually tried doing it with several other accounts, notably mail.com and
netscape.com
When i do it with netscape the dialog goes like the following:

The username and password are naturally valid, but something else is wrong.
Do you know if Netscape also doesn't allow POP access? Is there a free
e-mail provider who does?

Okay..this OT now!

Gmail provides pop access. Or you can use fastmail.fm, they hae a free
account option with POP3 as well as IMAP access.

Before you post any Python code, first try with some email client and
then try with Python code.

-Kartic
Jul 18 '05 #4
In article <q6************ ********@rcn.ne t>, Andre wrote:

import getpass, poplib, re
POPHOST = "pop.mail.yahoo .com"
POPUSER = "mylogin"
POPPASS = "mypass"
pop = poplib.POP3(POP HOST)
pop.user(POPUSE R)
up to this point evertything proceeds fine, but when i do
if not POPPASS:>
POPPASS = getpass.getpass ("Password for %s@%s:" % (POPUSER, POPHOST))
pop.pass_(POPPA SS)


Wait a tic. The 'if not POPPASS' should only work if POPPASS is set to '',
not if it's set to 'mypass'. Are you really being prompted for your
password in this case? If you really are being prompted, then either you
don't have a valid POP3 account at Yahoo (you have to pay or be using
SBC Yahoo DSL to have it), or you haven't enabled it (you have to do this
in your Yahoo mail options).

Make double sure you can access POP3 mail via another client like Outlook
or Thunderbird as well, to ensure that POP3 works at all. If you can't get
it to work in those clients, you won't get it to work in Python, either.

--
zoerhoff(AT)sdf .lonestar.org
kristian.zoerho ff(AT)gmail.com
Jul 18 '05 #5

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

Similar topics

8
11585
by: asd | last post by:
I need to find the value/index of the previously selected item of a select list. That is, when the user selects an item from the list and a certain condition elsewhere in the form is not met, I need to display an alert box warning the user that a selection cannot be made, and redisplay the item that was previously selected. What is the most...
4
1697
by: codewarr2000 | last post by:
Having problem with retrieving a class instance item from a Vector. This is the result of the code below. Also a weird note: If I dont declare as: TYPE_VECTOR_BANKED_MEMORY_DATA bankedDataMemoryLayout(NUMBER_BANKS); but an empty vector TYPE_VECTOR_BANKED_MEMORY_DATA bankedDataMemoryLayout; The program crashes on the 3rd insertion???
1
1990
by: Roman Kagan | last post by:
Hi everyone, I am successful in retrieving the image from the table (.TIF), however, the retrieved file does not work. It looks like an image file - extension, size and all, but the image is not visible. Any ideas? I'm including the first few lines (image opened with Notepad) of the file below. Please, help. """""
2
3389
by: Catherine Jones | last post by:
Hi all, We are into the development of an application in C#. In one of the module we are using RichEdit control as text editor. This text editor is resposible for highlighting certain keywords. After parsing the text we are using the following methods for setting the color of the text. RichText.Select(int startIndex, int length) &...
10
1685
by: Krakatioison | last post by:
Hi everyone, can someone point me to download of an example for saving and retrieving to/from MYSQL database. Or did anyone of you tried this and could share your code with me. I've got some data which needs to be put to mysql database using VB.NET and I can't figure this out. Thanks a lot. K.
1
1033
by: trialproduct2004 | last post by:
hi all I have one problem in vb.net application. I am having two threads which are starting at the same time. Both these threads are reading one file and retrieving data from same file. When one thread start and during retrieving information from file, if i abort thread then second thread is getting affected and is going to infinite loop. ...
0
1235
by: kid4rilla | last post by:
I can successfully write the binary data to an image data type, and successfully retrieve it, but when I attempt to play the file in media player after retrieving it, I get the file type isn't supported. I must be losing something somewhere, but the byte lengths match up. Is there some encoding I need to do. Please take a look, and...
1
9435
by: jimmyfo | last post by:
Hi, I recently wrote an ASP.Net web application in VS2005 and published (using VS2005 Publish feature) it to a relatively clean machine with ASP.Net 2.0 and MDAC 2.8 installed on it. However, when I try to create my SQL connection in the code-behind, I get the following error. I tried to register the DLL using regsvr32 but that errored out...
0
1952
by: orieni | last post by:
Hi, I have writen a code to take snapshot of Internet Explorer. The code works fine when run in the debug mode. But once I publish the site I get the following error for: Retrieving the COM class factory for component with CLSID {9BA05972-F6A8-11CF-A442-00A0C90A8F39} failed due to the following error:
3
2115
by: ajos | last post by:
Hello friends, In my action class i am getting a resultset data which im storing in a arraylist. In my jsp page im retrieving the arraylist data as-----> <%publicity.PendingReqForm prfObj=null; ArrayList req=(ArrayList) request.getAttribute("req"); for(Iterator it= req.iterator();it.hasNext();){ prfObj=(PendingReqForm) it.next();{ %>
0
7401
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7656
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7419
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7756
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5971
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5326
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3442
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1879
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
703
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.