aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes yahoo mail, gmail setup in my web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "yahoo mail, gmail setup in my web application" Watch "yahoo mail, gmail setup in my web application" New topic
Author

yahoo mail, gmail setup in my web application

Tarun Adiwal
Greenhorn

Joined: Aug 12, 2008
Posts: 1

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

Joined: Oct 29, 2001
Posts: 8997
    
    9

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/


[How To Ask Questions On JavaRanch]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42944
    
  68
Yahoo mail in particular doesn't allow POP3 access unless you pay for it.
Bunty Adiwal
Greenhorn

Joined: Aug 29, 2008
Posts: 1
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

Joined: Oct 23, 2007
Posts: 339
{Hijack removed]
[ August 29, 2008: Message edited by: Bear Bibeault ]

SCJP 5.0(75%), SCWCD 5.0(88%)
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19790
    
  20

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
pradeep singh
Ranch Hand

Joined: Oct 23, 2007
Posts: 339
Hi
Ok.Sorry for that!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: yahoo mail, gmail setup in my web application