473,416 Members | 1,660 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,416 software developers and data experts.

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(POPHOST)
pop.user(POPUSER)
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_(POPPASS)
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 4656
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.netscape.com'
pop = poplib.POP3(POPHOST)
POPUSER = "myusername"
pop.user(POPUSER) '+OK' pop.pass_("mypassword")
Traceback (most recent call last):
File "<pyshell#5>", line 1, in ?
pop.pass_("123456")
File "D:\Python24\lib\poplib.py", line 202, in pass_
return self._shortcmd('PASS %s' % pswd)
File "D:\Python24\lib\poplib.py", line 165, in _shortcmd
return self._getresp()
File "D:\Python24\lib\poplib.py", line 141, in _getresp
raise error_proto(resp)
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.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.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.net>, Andre wrote:

import getpass, poplib, re
POPHOST = "pop.mail.yahoo.com"
POPUSER = "mylogin"
POPPASS = "mypass"
pop = poplib.POP3(POPHOST)
pop.user(POPUSER)
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_(POPPASS)


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.zoerhoff(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
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...
4
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...
1
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...
2
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....
10
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...
1
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...
0
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...
1
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...
0
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...
3
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;...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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...
0
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.