Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 28942 invoked from network); 10 Jun 2009 11:29:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Jun 2009 11:29:49 -0000 Received: (qmail 80504 invoked by uid 500); 10 Jun 2009 11:30:00 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 80484 invoked by uid 500); 10 Jun 2009 11:30:00 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 80474 invoked by uid 500); 10 Jun 2009 11:30:00 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 80471 invoked by uid 99); 10 Jun 2009 11:30:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jun 2009 11:30:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jun 2009 11:29:57 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 60696234C046 for ; Wed, 10 Jun 2009 04:29:35 -0700 (PDT) Message-ID: <987022879.1244633375390.JavaMail.jira@brutus> Date: Wed, 10 Jun 2009 04:29:35 -0700 (PDT) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-1645) Can't set the outgoing mail's content-type and charset In-Reply-To: <191067460.1243244450584.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-1645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52177#action_52177 ] Claus Ibsen commented on CAMEL-1645: ------------------------------------ Rohit thanks for reporting. Arrrrggghh why is that every API that SUN does it terrible low level and a pain to work with. Yeah I have to a bit of refator to let the I put the content on this part of the mime message being able to detect content type and set it correctly as either text or content and handle the charset as well :) > Can't set the outgoing mail's content-type and charset > ------------------------------------------------------ > > Key: CAMEL-1645 > URL: https://issues.apache.org/activemq/browse/CAMEL-1645 > Project: Apache Camel > Issue Type: Bug > Components: camel-mail > Affects Versions: 1.6.0, 2.0-M1, 1.6.1 > Reporter: Rohit > Assignee: Claus Ibsen > Fix For: 1.6.2, 2.0.0 > > > The document at http://camel.apache.org/mail.html suggests that contentType header should set the Content-Type of the out going mail, but that doesn't work. > I am trying to set the content type of the mail I send using the contentType header. That doesn't work, but it works if I put the contentType in the endpoint uri. i.e. - > > text/html > > Has no effect, while this works - > smtp://rohitr@xyzab.pramati.com?password=32478hds78&contentType=text/html > But I am not able to set the charset and it always takes us-ascii > So for the mail the content type header comes as - > Content-Type: text/html; charset=us-ascii > I tried using > > text/html;charset=UTF-8 > > and also > > text/html;charset=UTF-8 > > and > smtp://rohitr@xyzab.pramati.com?password= 32478hds78&contentType=text/html;charset=UTF-8 > but nothing works -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.