You can certainly use the
Java Mail API to send email if you can arrange access to a mail server. The best way to do this is to have the actual mail sending done in a separate process so that any hold-up in mailing won't interfere with the JSP engine.
In other words, you would compose an object containing the message contents and hand it to a mailing object that runs a separate
Thread.
You should also log the message in case the mail fails for any reason.
Bill