Umm I did this for something I did once, about 3 years ago....cant remember how I did it, but I DO remember that I got the info from
www.webmonkey.com and afew sites I found on ask jeeves.
Its actually a resonably simple thing to do. SPAM
(NOTE: I didnt do much of the Java stuff, just the Perl script, but it didnt seem too hard)
;D
If you find out how post it here I would be interested to remember.
Good Luck