Because your are using an applet already it would be easier just to do the e-mail method in java and call via JavaScript (this may throw unsigned applet warning at start). Create a method in java that will send the message via smtp
Helpful links: http://docs.oracle.com/javase/tutorial/deployment/applet/invokingAppletMethodsFromJavaScript.html