File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other JSE/JEE APIs and the fly likes recieving mail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "recieving mail" Watch "recieving mail" New topic

recieving mail

priti agarwal

Joined: Aug 15, 2013
Posts: 1
i have coded for sending mail but how to code for recieving mail?what classes of javamail should be used.?please give an example
Ivan Jozsef Balazs

Joined: May 22, 2012
Posts: 968
What classes did you use to send e-mail?

The Java Mail package (part of EE but also available separately) can handle sending and receiving e-mails.
Ivan Jozsef Balazs

Joined: May 22, 2012
Posts: 968
Search engines are our friends.
Nam Ha Minh
Ranch Hand

Joined: Oct 31, 2011
Posts: 502

Hi priti agarwal,

Here's an example for your reference:

Receive e-mail messages from a POP3-IMAP server

PM Me If You Want to get Urgent Help on Java Programming
I agree. Here's the link:
subject: recieving mail
It's not a secret anymore!