• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic