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.