jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes javamail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "javamail" Watch "javamail" New topic


mary sarami

Joined: Feb 11, 2001
Posts: 25
I used the JavaMail API in a feedback form usnig JSP.
All went well,but it has been discovered that if french accents (characters) are used in the form we
get an error message:
"This message uses a character set that is not supported by the Internet Service. To
view the original message content, open the attached message. If the text doesn't
display correctly, save the attachment to disk, and then open it using a viewer that
can display the original character set."
Does something extra have to be added the the Javamail or is it a server end problem.
Any ideas?
Dave Soto
Ranch Hand

Joined: Sep 15, 2001
Posts: 55
What exactly is throwing that error? (Sure seems like an awfully friendly message for a servlet engine)
What I'm getting at is that it sounds like the error you're getting probably doesn't have anything to do with JavaMail, but rather with the mail server you're sending from or to... does that sound right?
mary sarami

Joined: Feb 11, 2001
Posts: 25
It was solved by adding the following line, the french characters needs it I guess
message.setText(out1+ "\n" , "UTF-8") ;
Thanks for your reply
I agree. Here's the link: http://aspose.com/file-tools
subject: javamail
It's not a secret anymore!