Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to send email with specific Content-Transfer-Encoding?

807603Feb 8 2008
Hello,

I tried to send email with header Content-Transfer-Encoding: 8bit. Here is the code:

....
Message msg = new MimeMessage(session);
msg.setHeader("X-Mailer", "WebZEmailer");
msg.setHeader("Content-Transfer-Encoding","8bit");
.....
msg.setContent(message, "text/plain;charset=iso-8859-1");
.....

After sending to my Gmail account, I checked the header and it is always 7bit. I confirmed with my Sys Adm that the SMTP server I use supports 8BITMIME SMTP extension. Any idea? Thanks in advance.

Ally
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 7 2008
Added on Feb 8 2008
0 comments
126 views