I believe that the simpler things are the better. I have seen
different API's for sending email with java, but some of them
where really complex and they only work for a jre 1.5 or greater.
I needed a simpler class because SAP work with a smaller JDK.
The other issue, is when you need to install the API's in a server,
if you need to modify the classpath in the JAVA, that meens that in
SAP you have to use the STOPSAP, and STARTSTAP commands. I think
that this isn't really good, you need something simpler, and try
to not bother owr partners in the BASIS team. I don't like to depend
on them as a developer.
I hope that you enjoy the code.
Here is the code: