• Post Reply Bookmark Topic Watch Topic
  • New Topic

Diff. between JavaMail SMTP & sun.net.smtp.*  RSS feed

 
Venkat Ammisetty
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks
What is the difference between "Transport" in JavaMail API and "sun.net.smtp.*" services.
When I programmed to send mail using "Transport" in JavaMail API it is giving Exception "NoSuchProviderException".
When I use same SMTP server name to send mail using sun.net.smtp
it is succesfull.I go the mail to respective inboxes.
I came to the conclusion that I require a dedicated SMTP server to provide the service in first case(i.e. Transport in JavaMail API).
If I am worng what is the exact concept.
Any body please explaine it.
Thanx in advance
Bye
Venkat
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java Mail questions are really more appropriate to the "Other Java APIs" forum, so I've moved this post.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!