Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javamail

 
mary sarami
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic