• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaMail, SMTP error

 
Kedar Dravid
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post your code?
 
Kedar Dravid
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic