In case you haven't figured it out, the cause of that exception is that you haven't added the right JavaMail library to your project. See this JavaMail FAQ entry.
If you're using Maven, you might want to refer to the Maven coordinates for JavaMail listed here. You want com.sun.mail:javax.mail.