This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 866
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: 866
Search engines are our friends.
Nam Ha Minh
Ranch Hand

Joined: Oct 31, 2011
Posts: 498

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
Similar Threads
change my name at certMananger
I've done RC5 for Oracle!
recive mails
Pop3 mails (Urgent)
Help Needed