You don't send emails from JSP pages (yes, you can but you shouldn't). JSP are meant for display purposes, not performing business logic.
Javamail is a standard part of
J2EE, therefore a full featured server will have it for use by
servlets and EJB (for example).