#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2004
    Location
    california
    Posts
    53
    Rep Power
    10

    Question Trouble with poplib


    i need to know what i put in for host if i want to log onto the hotmail.com POP3 server. the port is 110 but I have tried various hosts, any ideas?

    import poplib
    s = poplib.POP3('host', 110)

  2. #2
  3. Mini me.
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Location
    Cambridge, UK
    Posts
    783
    Rep Power
    13
    Go on, give us a clue!

    What error do you get, the code snippet you posted is only the start of using poplib....

    Do you have a pop3 account from hotmail? If you have a pop3 account hotmail should have provided you with the server information.

    What do you mean you have tried various hosts?

    grim

    Comments on this post

    • miryln agrees : thanks
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2004
    Location
    california
    Posts
    53
    Rep Power
    10
    well thats the problem then I dont even have a paid account with hotmail. I thought you could do this with a free acount. but they did not ever supply me with server information. Is there anyway to hack the server information???
  6. #4
  7. Mini me.
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Location
    Cambridge, UK
    Posts
    783
    Rep Power
    13
    Originally Posted by miryln
    well thats the problem then I dont even have a paid account with hotmail. I thought you could do this with a free acount. but they did not ever supply me with server information. Is there anyway to hack the server information???
    I'm just guessing but I think Microsoft would have thought about that little security hole If you don't have a POP3 account you don't have a user name and password that is valid to access pop3 so knowing the pop3 server IP address will not help you.

    To be honest I don't even know if Hotmail still offers pop3 access even for paying customers.

    grim

    Comments on this post

    • miryln agrees : uh huhuhuh
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2004
    Location
    california
    Posts
    53
    Rep Power
    10
    ohhh well that sucks. umm is there any module built for retrieving and sending emails that are not POP3. like something I could sign in with my free hotmail account?
  10. #6
  11. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2005
    Posts
    174
    Rep Power
    11
    hotmail and other online mail servers actually don't use POP3 mail but another system. Also the OE plugin is being phased out.

    since the GAIM and jabberchat movements can utilize hotmail into their systems, I'm going to suggest that it's actually some kind of an XMLRPC login. So you need to massage your data requests into the right format. Check at MSDN or the microsoft online docs for more information or the C# tutorial link below. Python.NET might have something.

    It should be possible, it's a web service after all, but it's not a regular mail server. Therefore you might also try looking for examples with httplib instead. There is one for Gmail using urllib2, but that's google for you http://www.holovaty.com/code/gmail.py

    and here's one for accessing hotmail with C# that you can try to convert to python:

    http://www.devarticles.com/c/a/C-Sharp/Hotmail-Exposed-Access-Hotmail-using-C-sharp/

    Otherwise you're stuck trying to use the perl program here instead:

    http://sourceforge.net/projects/gotmail

    Yes, python needs one of it's own

    Hope that helps
    sf2k

    Comments on this post

    • miryln agrees : great explanation
    Last edited by sf2k; March 7th, 2006 at 01:30 AM.
  12. #7
  13. Mini me.
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Location
    Cambridge, UK
    Posts
    783
    Rep Power
    13
    I don't know of a module to do it for you.

    I looked at the hotmail Inbox web page. It is normal html. Once you are logged in, messages are accessed as web pages using the format:
    http://bXXX.bayXX.hotmail.msn.com/cgi-bin/getmsg?msg=MSG1141XXXXXXX
    So I guess in principle you could download your inbox page using python's http tools, extract the javscript strings that contain the messge IDs and then download each message's web page, paste it into a normal email and send it to yourself.

    It could be an interesting project for someone



    grim

    Comments on this post

    • miryln agrees : thank you
  14. #8
  15. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Posts
    624
    Rep Power
    34
    http://www.boolean.ca/hotpop/

    But by the time you've bought this, you may as well have spent your money on Hotmail POP3 access directly instead, really.

    Comments on this post

    • miryln agrees : thanx
  16. #9
  17. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2004
    Location
    california
    Posts
    53
    Rep Power
    10
    ohh ok thanx ill have to learn urllib2 and httplib then i can try to get it too work.

IMN logo majestic logo threadwatch logo seochat tools logo