Results 1 to 2 of 2
  1. #1
    ally is offline Member
    Join Date
    Feb 2008
    Posts
    1
    Rep Power
    0

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

    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

  2. #2
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    8

    Default

    Java Code:
    Content-type: text/plain; charset=ISO-8859-8
    ??... maybe?...
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

Similar Threads

  1. send email using JMS
    By Heather in forum Advanced Java
    Replies: 9
    Last Post: 01-07-2009, 04:04 PM
  2. Some help with encoding...
    By nm123 in forum Networking
    Replies: 0
    Last Post: 04-15-2008, 01:22 AM
  3. Missing text encoding
    By talgreen in forum Eclipse
    Replies: 0
    Last Post: 03-30-2008, 09:14 PM
  4. How to convert the encoding of a file
    By valery in forum New To Java
    Replies: 1
    Last Post: 08-06-2007, 04:48 AM
  5. To send email of page present Web from a Jsp
    By Marcus in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 06-09-2007, 05:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •