You can't do this in JavaScript. From within Java code, you'd use the JavaMail API; you'll find lots of information about it in the JavaEnterpriseEditionFaq. Note that you'll need access to a mail server for it to work.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.