Click here to Skip to main content
15,908,274 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to read the Emails from a Yahoo account using C#. I have all the valid credentials. I am using IMAP, but when I try to read the Emails it says "access to the service is not permitted". I have to read the Emails from Yahoo only without "Yahoo! Plus" account, not gmail or hotmail etc. I am using "imap.mail.yahoo.com" as imap server, 993 port and SSL.
Posted
Updated 17-Jun-13 23:41pm
v2
Comments
Richard MacCutchan 18-Jun-13 5:43am    
You need to check the help on the Yahoo website to see what settings are needed to read emails directly.
asaeed123 18-Jun-13 6:16am    
I have tried many setting but almost same or no result at the end. the setting I mentioned above is also from the Yahoo help.
Richard MacCutchan 18-Jun-13 6:18am    
If this message comes from Yahoo, then it means that they are blocking access; you need to contact them to find out why.
asaeed123 19-Jun-13 8:28am    
Thanks Richard, I think I need to implement yahoo Email web service in my application. as mentioned by Bill down here...
Mike Meinz 18-Jun-13 8:57am    
This may or may not help you. I setup Yahoo mail via IMAP in my MS Outlook client. It did not work until I noticed that the IMAP interface requires the full Yahoo email address as the username unlike the mail.yahoo.com web interface which only requires the username part and not the "@yahoo.com" part. See Setting up IMAP on mobile device or email client.

1 solution

Suggest you take a look at the open-source IMap X2 facility: there's source code here with annotation about accessing Yahoo Mail: [^]

When you say have all the valid credentials, does that include your registering with YDN, and getting both consumer, and secret, keys ?

Note that Yahoo mail facility now uses OAuth for access permission, but, "The recommended authentication method for access to a Yahoo! user's mail account is OAuth. While you may still use the Browser Based Authentication (BBAuth) API, it has been deprecated."

Yahoo OAuth: [^]

There are articles here on CP that talk about using OAuth.
 
Share this answer
 
Comments
asaeed123 19-Jun-13 8:32am    
Thanks Bill, yes to me also, it seems to be the last and only solution. I was just wondering if there's any workaround for that? or any ready made wrapper app/code available which uses Yahoo Email Web Service, as I don't want to reinvent the wheel.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900