How to access Emails in application???????

Posted on 2002-04-22
Last Modified: 2013-11-24
Hi All,

Here I would like to know the Email service providers POP3/IMAP addresses , so that we can perform all the functionalities of Email such as Reply, Read, Sen,Forward etc. These functions posible only if we know the POP3 addresses. At present we are working on voice applications using VXML and JSP.
We successfully develop an application which perform all the Email functions. It will work only if know the POP3/IMAP addresses. I want to implement this application to work with Hotmail, Yahoo, Rediff and etc.
Please anybody help us how and where to get the pop3 address of the above mentioned email providers.

Thank You in advance.
Question by:vgopalji
  • 2
  • 2
  • 2

Accepted Solution

Venci75 earned 100 total points
ID: 6960322
Check the java mail extension features, which you can download from
Here is a simple code for how to use it:

     Properties props = new Properties();
     Session session = Session.getDefaultInstance(props,null);
     store = session.getStore("imap");

     folder = store.getFolder("INBOX");;
     Flags flags = new Flags(Flags.Flag.SEEN); term = new, false);
     Message message[] =;
     for(int i =0, n =message.length; i<n; i++){
        System.out.println(i + ": " + message[i].getFrom()[0] + "\t" + message[i].getSubject());

     Properties props = new Properties();
     Session session = Session.getDefaultInstance(props,null);

      MimeBodyPart text=new MimeBodyPart();
      Message message= new MimeMessage(session);
      message.setFrom(new InternetAddress("your@mail"));
      message.setRecipient(message.RecipientType.TO, new InternetAddress("your@mail"));
      Transport transport = session.getTransport("smtp");
      transport.connect("", "", "");

Expert Comment

ID: 6962109

Hi venu,
      I am also in same track, but little far from u. I made one small application for mails. which can do all what u asked. but it's true. It needs Pop3/IMAP address to proceed. and hotmail,rediffmail dont reveal their pop3 address to outsiders. But i beleive, they do after getting some money. I wrote already to all of them, and i am on the way to nego with hotmail people. Rediff people have to reply me yet. Yahoo was free before, but now that also become payable. As soon as i get any news i will let u know.

   Well i need ur help in exploring vxml. I am confused from where to start. I heard a lot about this, and want to explore it by myself.  I came to know about BeVocal, nuance,TellMe and heyAnita. All of them say, they are the leader in this. Can u help me in this way.

 I will be very thank full to u.


Expert Comment

ID: 6962111
Sorry shahnazali,
I didn't read your whole question. That's why I posted this stupid comment. Unfortunately - I can't help you in vxml. May be you should close this question and open a new one with appropriate title and let the others (that are familiar with this) to help you

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.


Author Comment

ID: 6962155
Hi Shahnaz,

Thanks for the reply. Please, do send your emailID so that i can write you there.You can also contact me at


Expert Comment

ID: 6962166

thanks venu for quick response . u can write me at


Author Comment

ID: 7013007
Thnkas for your answer.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
eclipse compiler vs Installed JREs option 3 77
HSSFWorkbook cannot be resolved error 10 51
servlet  URL Rewriting 1 28
replace a word with other 1 40
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now