programatically Accessing the Mail

hi,

my task is programatically accessing the mail server whether it is hotmail/gmail/yahoo etc using vs2005 C#.Means fetching the my inbox contents into my machine.Can you please suggest me some good references.Its very urgent and i am new to these technologies.Please give me solutions.

Thanking you inadvance
A.suneel.




Answer this question

programatically Accessing the Mail

  • leonardoreyes

    Hotmail, etc may or may not offer POP3 access.
    In .NET, today, you don't have APIs to retrieve mail vis POP3.
    You could however use other technologies like IMAP and you have to do
    P/Invoke yourself

  • cpurick

    Dear sunil,

    you can achieve this many ways. one way is using HTTP protocl, the way browser get and show the mail messages.
    but its fully hard coded i mean that your code wont be a stable one. the following project get and list the contacts lists: www.ideabubbling.com/contactsreader.aspx . its not a for mail but contacts, try this article www.ideabubbling.com/articles.aspx

    love zvasanth

  • Chas T

    can please explain briefly.Because i am new to these technologies.

  • ekke

    Basically we do not offer mail retreival APIs in the .Net Framework as of version 2.0.  We are considering adding these in a future release and feedback such as this is very helpful.  If you need to do this through managed code, then you may want to search the internet for a POP3 and/or IMAP4 implementation.  POP3/IMAP4 are the typical protocols used to access mail from a mail server.  I have searched for this in the past and know there are both free and commercial implementations out there.

  • cam_mac

    you have to look at using TCPClasses to recieve mail and check out the contents and responses from the Server.

    http://www.csharphelp.com/archives/archive232.html

    Will move thread to the appropriate forum for the experts to help out more on this



  • programatically Accessing the Mail