Gurpreet, Use the JavaMail API. Follow some links from www.javasoft.com to download it. It has specific API's for mail access using SMPT, POP, IMAP protocols, along with examples in its documentation.
regards Parag
hi all i am writing a SMTP and POP mail client for a s/w presentation comptt. am coding in Java can someone tell me how am i suppose to authenticate to the SMTP and POP servers. i mean what command is needed to be sent to the servers to authenticate myself as a valid user?? am using smtp.rediffmail.com and pop.rediffmail.com for testing