I get the following error when I try to send an e-mail using the JavaMail API. javax.mail.NoSuchProviderException: smtp at javax.mail.Session.getService(Session.java:611) at javax.mail.Session.getTransport(Session.java:541) at javax.mail.Session.getTransport(Session.java:484) at javax.mail.Session.getTransport(Session.java:464) at javax.mail.Session.getTransport(Session.java:519)
I have configured the SMTP Host, user name, and password properly. I've also got the necessary jar files in my classpath.
Note that some parts of the code(the one where Criteria object is used) use the Torque persistence layer. You may ignore this part as this is used only for retrieving database records. Also, for security purposes, I have changed the SMTP host and user-name/password. Of course, I've configured these values correctly in the code thta I shall actually be using. [ April 11, 2005: Message edited by: Kedar Dravid ]