Remember the LotusScript Email class from last October? I've been using it ever since, as it makes sending emails so much easier. You should consider using it - or something similar - if you send lots of emails.
Yesterday I had need to send an email from a Java agent and found myself wishing I had a similar Java class, so I spent half an hour porting the LotusScript to Java. Here's the resulting code, which you can import it to your own agents.
Use it like this:
Email mail = new Email(); mail.setSubject("Test Email"); mail.setHTMLPart("<p>this is <b>html</b>!</p>");
mail.setTextPart("this is just text!"); mail.send("jake howlett");
As with the LotusScript class you can choose to omit the text part if you wish (bad practice to though!), add styles to the HTML etc.
Thought I'd post it here in case anybody else might like it. Or maybe you can offer advice on how to improve it. One thing I need to do today is add an addFileAttachment() method.