Win a copy of Functional Design and Architecture this week in the Functional programming forum!
  • 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

sending an e-mail

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everybody!
I'm having some troubles with sending an e-mail from a servlet I have running on Tomcat 3.3 and Solaris.
The servlet uses Java Mail API to send an e-mail, but when I press the button to send the e-mail this error appear on console and the mail is not sended:
javax.mail.NoSuchProviderException: No provider for Address type: rfc822

Could you tell me why does this message appear? and How can I fix it?
Thank you in advance!!
Nancy.
 
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
This usually means that you do not have the SMTP provider in the classpath.

One thing to check is that you have the latest mail.jar and activation.jar
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Mike,
But since I tried to send the mail at first, I had already added the activation.jar, mail.jar and pop3.jar in the classpath of the .profile file, so I don't know why I can't send the mail if I have all this libraries...

Could you help me?
Thanks again.
Nancy.
 
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
Place those jar files in your /usr/local/tomcat/lib directory and see if it helps. (It might not be /usr/local/, but I'm sure you get the idea.

If you are using *your* (you, a user) profile and compiling, running under that profile, maybe Tomcat is running as root (or hopefully some other user). So place the jars where Tomcat can always find them.
[ January 31, 2002: Message edited by: Mike Curwen ]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic