The Artima Developer Community
Sponsored Link

Python Answers Forum
retrieving e-mail from yahoo pop server. What's wrong?

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Andre

Posts: 1
Nickname: zerdna
Registered: Feb, 2005

retrieving e-mail from yahoo pop server. What's wrong? Posted: Feb 8, 2005 7:38 PM
Reply to this message Reply
Advertisement
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 doign wrong?

Topic: MySQLdb connection error Previous Topic   Next Topic Topic: pvm verion(all) doesnt work wright, help!!!

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use