Meaningless Drivel is fun!*
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


JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "recieving mail" Watch "recieving mail" New topic
Author

recieving mail

priti agarwal
Greenhorn

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
Rancher

Joined: May 22, 2012
Posts: 867
    
    5
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
Rancher

Joined: May 22, 2012
Posts: 867
    
    5
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
 
GeeCON Prague 2014
 
subject: recieving mail