bala krishnand

Greenhorn
+ Follow
since Nov 24, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by bala krishnand

Originally posted by Ulf Dittmer:
Why not? Using JavaMail will be much simpler than writing all that code yourself. What you described is essentially an email client - that's not simple code at all, since you need to implement the relevant parts of the POP3 (or IMAP) protocol yourself.



i dont wanna use pop3 or imap to retrive mail..
i wanna use mail[] to get all mails using object subject , message , sent date .................
15 years ago
i dont wanna use mail api -- i wanna simple code using java
15 years ago
write me a program to retrive the e-mails as per user name using java.
--------------------------------------------------------------
class Mail{
private String subject;
private String message;
private Date sentDate;
}
class MailRetriever{
public Mail[] getAllMails(String userName){
//Write code to retrive all mails for user "userName"
//and return a set of mail objects
}}

===========
output:
-----------
username :bala

subject message sentdate
hi this is test message 17.11.08
hi1 this is second message 16.11.08
hi2 this is third message 15.11.08

username: basker

subject message sentdate
hi this is test message 17.11.08
hi1 this is second message 16.11.08
hi2 this is third message 15.11.08
15 years ago