File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

yahoo mail, gmail setup in my web application

 
Tarun Adiwal
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I want to show yahoo mail and gmail in my web application. I want to show the unread mails of yahoo and gmai on my web site and when user clicks on the link of yahoo mail(unread mail[number of unread mail]) then the user will be directed to the inbox of yahoo mail or gmail without being authenticated.
can we do such kind of thing???
 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch.
Java has an email api. It has a Frequently Asked Questions page:
Q: Can I use JavaMail to read mail from my web mail account (such as Yahoo or Hotmail)?
A: It depends. Many web-based email services provide access only using a browser with HTTP. These services cannot be accessed using JavaMail. If the service also provides POP3 or IMAP access, JavaMail can probably be used to access it. Contact your web email service provider for details. Also, see the JHTTPMail project for an open source provider for JavaMail that provides access to Hotmail. Another helpful tool is MrPostman, a proxy server that provides POP3 access to Hotmail and Yahoo! Mail, available at http://mrbook.org/mrpostman/
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yahoo mail in particular doesn't allow POP3 access unless you pay for it.
 
Bunty Adiwal
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I want to integrate Yahooand Hotmail in my web application. The Idea is that whenever I click on the link of Yahoo or Hotmail the respective Inbox should be open in a new window. I am using HttpClient 3.0 API from APache.
I am able to login in to Yahoo through my code. There is a sequence of GET and POST method to do this. first I made a GET method call to http://mail.yahoo.com, it gives me a response containing the <form> element, from this element I retrieve the action element and made a POST request to that action [something like http://login.yahoo.com?login_verify_ysm], this again gives me response and from that response I retrive the "location" element which is there in the response header of the response and is a URL. Now I opened this URL in a new window through AJAX call in javascript....
The new window gets open with the login page of Yahoo and with an error stating that "The Browser You are using refuses to Sign In (cookies rejected)". Actually I am getting 5 cookies from my code which is a result of subsequent call to GET and POST method. These cookies get Set in my browser with in the local domain and there is only one cookie set with in the .yahoo.com domain. I think yahoo server is able to read cookies which are set as .yahoo.com domain only.

Could anyone please give me an Idea of how to make Yahoo server able to read my local domain cookies or are we able to set cookies with the .yahoo.com domain from our application.
 
pradeep singh
Ranch Hand
Posts: 339
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
{Hijack removed]
[ August 29, 2008: Message edited by: Bear Bibeault ]
 
Rob Spoor
Sheriff
Pie
Posts: 20372
44
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pradeep,

Please don't hijack this thread. You have your own thread for this problem, and it has nothing to do with this one. As such, please continue in the thread that already has several replies.
 
pradeep singh
Ranch Hand
Posts: 339
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Ok.Sorry for that!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic