*
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
Author

javamail

mary sarami
Greenhorn

Joined: Feb 11, 2001
Posts: 25
Hi,
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?
Thanks
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
Greenhorn

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
 
 
subject: javamail
 
Similar Threads
Java Mail working but putting in some junk characters
OS390 and javamail
Netbeans6.8 encoding problem
character set in mail
character coding problem