Check out my M1 robot (now works on RoboCode 0.98.3).
Here's some old source code from 1999 that you can use to do email in Java 1.1. Have fun.
net.solin.mail
EmailAddress
EmailException
EmailMessage
MIMERegistry
POPAgent
RawEmailMessage
SMTPAgent
net.solin.util
UUDecoder
UUEncoder