0

How to implement an web service to retrieve email from Yahoo! Mail Web Service

How do I implement an asp.net web service to find a particular email in the Yahoo! Mail Web Service and get the content of the mail I found?

Many thanks for your helping.

by
4 Replies
  • QUOTE (vincent @ Mar 2 2009, 05:24 PM) <{POST_SNAPBACK}>
    How do I implement an asp.net web service to find a particular email in the Yahoo! Mail Web Service and get the content of the mail I found?


    Vincent, a good place to start is here: http://developer.yahoo.com/mail/code/. There's a C# code sample there, which includes examples of calling SearchMessages and GetMessage. That should get you pointed in the right direction.
    0
  • QUOTE (Ryan Kennedy @ Mar 2 2009, 09:38 PM) <{POST_SNAPBACK}>
    Vincent, a good place to start is here: http://developer.yahoo.com/mail/code/. There's a C# code sample there, which includes examples of calling SearchMessages and GetMessage. That should get you pointed in the right direction.


    Hi, I have tried the code, and I always get exception on the following step.
    CODE
                // Update the credentials. This will fetch a new WSSID and a "Y" cookie for 
    // the user.
    auth.UpdateCredentials();


    The error message is poor, and does not provide much information.



    The following link is my source code.
    My source code

    Please help me.

    Many thanks.
    0
  • Vincent,

    Yes, the error message you are getting is unfortunate and not very descriptive. You should only get this if the authentication fails and the class is unable to parse the returned error for some reason. I recommend downloading and installing Fiddler2 (http://www.fiddler2.com) or a similar application to have a look at the actual data being sent to the server and especially coming back when you call UpdateCredentials(). Please post the content of the result you are getting (or the HTTP result code coming from the server), that should help figure out what's going on.

    //TB
    0
  • Vincent - dod you get it working ?
    0

Recent Posts

in .NET Development