Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6045615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:08:41+00:00 2026-05-23T07:08:41+00:00

How do you change the encoding of an email generated with Apache Commons Email

  • 0

How do you change the encoding of an email generated with Apache Commons Email to UTF-8? I want to send emails I generate depending on the receiver’s language, and I need to take in account Japanese and Russian. Problem is: the Email class doesn’t propose a UTF-8 constant I can pass to the Email.setCharset method. Any clue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:08:41+00:00Added an answer on May 23, 2026 at 7:08 am

    There does appear to be a constant for UTF_8 in the Apache Commons Email API:

    UTF_8
    
    static final String UTF_8
    See Also:
      Constant Field Values
    
    All Known Implementing Classes:
      Email, HtmlEmail, ImageHtmlEmail, MultiPartEmail, SimpleEmail
    

    Which is defined in http://commons.apache.org/email/apidocs/src-html/org/apache/commons/mail/EmailConstants.html#line.38 as:

    String UTF_8 = "utf-8";
    

    See http://commons.apache.org/email/apidocs/org/apache/commons/mail/EmailConstants.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Django and south newbie here I need to change the encoding of a table
I want to configure my mail-service.xml to send emails from my Gmail account. I
I want to change encoding of file in NetBeans IDE (ver 6.9.1), let's say
I want to send html email's with my Rails Mailer. Could be multipart/alternative or
This is my xml file: <?xml version=1.0 encoding=UTF-8?> <CONTACTS> <CONTACT> <FirstName>Arun</FirstName> <LastName>Arun_Neelam</LastName> <Email>nuraaa_iceee@yahoo.co.in</Email> </CONTACT>
I would like to change string encoding from UTF-8 to ISO-8859-2 in Javascript. How
I need to change the subject of the emails on a low level. What
How can i change database encoding for a PostgreSQL database using sql or phpPgAdmin?
Is there a way to change the encoding used by the String(byte[]) constructor ?
I have an XML feed coming in: <?xml version=1.0 encoding=UTF-8?><product> <name>John</name> <contact_email>john@johnson.com</contact_email> <contact_telephone>01234 567</contact_telephone>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.