Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

sun.net.smtp....API's ???  RSS feed

 
Eric Howell
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developing a small servlet to send emails using smtp. I need to know the methods available for SmtpClient eg sun.net.smtp.* but can not find any API's. I'ev looked all over the sun site but to no avail.
Does any one have any ideas??
Thanks in advance
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any reason you're not using the JavaMail API?
 
Eric Howell
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mike Curwen:
Any reason you're not using the JavaMail API?

I'ed like to. The reason is that my host "WebAppCabaret" doesn't seem to have support for JavaMail but has SMTP access.
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Eric Howell:
I'ed like to. The reason is that my host "WebAppCabaret" doesn't seem to have support for JavaMail but has SMTP access.
Can't you just include the JavaMail library in your web-application? I don't think the sun.net.smtp classes are supported or documented. Otherwise, try using the URL class with a mailto: URL -- in fact, I wouldn't be a bit surprised if sun.net.smtp contains the support classes used by the mailto: protocol handler (the sun.net.www.protocol.mailto package looks a bit sparse).
- Peter
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eric, I've just signed up with webappcabaret.

Here is a snip from their faq:
---------------
Can I use Javamail?
Yes. It is already in your classpath. Check out the Web Smtp
example in the App Directory. The SMTP address was provided in
your registration confirmation email. You may also refer to the
Help section on how to use the JavaMail API on WebAppCabaret.
---------------
 
Eric Howell
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mike
I must start reading the small print...I could have saved myself a lot of trouble
Cheers
Eric
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!