• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to retrieve/fetch emails addres from yahoo,hotmail

 
kajal mukergi
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 49827
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After 2½ years you doubtless know there is no such thing as "urgent"
 
kajal mukergi
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks sir
can you please tell me how can i get code regarding this
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
kajal mukergi
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Pie
Posts: 21427
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic