File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes how to retrieve/fetch emails addres from yahoo,hotmail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to retrieve/fetch emails addres from yahoo,hotmail" Watch "how to retrieve/fetch emails addres from yahoo,hotmail" New topic
Author

how to retrieve/fetch emails addres from yahoo,hotmail

kajal mukergi
Ranch Hand

Joined: Mar 22, 2007
Posts: 102
Hi Friends

any way we can retrieve the emails from yahoo , hotmail and gmail using java.

i have seen many places no code for these things..

please tell me the procedure urgent.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38509
    
  23
After 2½ years you doubtless know there is no such thing as "urgent"
kajal mukergi
Ranch Hand

Joined: Mar 22, 2007
Posts: 102
thanks sir
can you please tell me how can i get code regarding this
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41621
    
  55
how can i get code regarding this

By writing it! What ideas have you had so far? Also, you've variously said that you want to retrieve mail addresses, and emails - which one is it?


Ping & DNS - my free Android networking tools app
kajal mukergi
Ranch Hand

Joined: Mar 22, 2007
Posts: 102
No Friend,

Actually i have retrieved my contact list from gmail using the API they provided for java this one is ok for me

but yahoo and hotmail they are giving rest calls and which will really not gud to use

so can you tell me how can we get the hotmail and yahoomails contact or buddy list. please.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41621
    
  55
but yahoo and hotmail they are giving rest calls and which will really not gud to use

What does that mean? Which problems did you have using those APIs, specifically? JAVA supports REST just fine.
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18765
    
  40

I think that is how facebook, linkedin, etc. do it -- this crawl the page, log in, and fetch the address book, as if it was a real person. You can accomplish the same thing with the URL or HttpClient class.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

If there's a REST API for doing this I'm not sure why you wouldn't just use that.

Yahoo also has POP/SMTP access, at least for premium accounts.
kajal mukergi
Ranch Hand

Joined: Mar 22, 2007
Posts: 102
ok Thanks friends , really valuable information.

i have doubts

if i use rest calls then

1. they give the Http url , for authentication purpose we will be using these http URL, then they response with html full code from there we will retrieve some authentication key,
with this key we have to make other service calls to servers for retrieving contact list rite.

so. if above procedure is correct

Is there any chance in future these http URLS will be changed by the respective Mail Servers or any chance that the response what these servers sending will be changed , if YES how to coupe it ?


Since our is web application and once started we can't stop the whole application.

So that is my main worry ,

Is my above assumption wrong . can please help me where i can get the code for rest call. (yahoo , hotmail and aol)

or any alternative method.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41621
    
  55
Is there any chance in future these http URLS will be changed by the respective Mail Servers or any chance that the response what these servers sending will be changed , if YES how to coupe it ?

Of course there's a chance it'll change - change is part of life. There are various ways to make code changes possible without web app restarts: Maybe use a scripting language for the implementation that allows you to upload a new script file which will be used from that point on, or look into something like OSGi for reloading the relevant code at runtime.

can please help me where i can get the code for rest call. (yahoo , hotmail and aol)

Don't those sites have documentation and example code?
kajal mukergi
Ranch Hand

Joined: Mar 22, 2007
Posts: 102
Yup they have i will go through.

thank you very for you help

ok so i have see new methods to reset the url if they change

thank you very much.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to retrieve/fetch emails addres from yahoo,hotmail