Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 36021 invoked from network); 24 Jun 2010 14:21:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Jun 2010 14:21:38 -0000 Received: (qmail 35516 invoked by uid 500); 24 Jun 2010 14:21:38 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 35439 invoked by uid 500); 24 Jun 2010 14:21:38 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 35431 invoked by uid 99); 24 Jun 2010 14:21:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jun 2010 14:21:37 +0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.158 is neither permitted nor denied by domain of matsev@gmail.com) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jun 2010 14:21:31 +0000 Received: from sam.nabble.com ([192.168.236.26]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1ORnIl-0007pZ-9x for users@camel.apache.org; Thu, 24 Jun 2010 07:21:11 -0700 Date: Thu, 24 Jun 2010 07:21:11 -0700 (PDT) From: Mattias Severson To: users@camel.apache.org Message-ID: <1277389271303-511111.post@n5.nabble.com> In-Reply-To: <1277388349840-511108.post@n5.nabble.com> References: <1277273819767-510814.post@n5.nabble.com> <4C2350C6.80601@gmail.com> <4C2354FA.1070506@gmail.com> <4C235F9D.1010501@gmail.com> <1277388349840-511108.post@n5.nabble.com> Subject: Re: Email character encoding? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Spring has a interface called http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/mail/javamail/JavaMailSender.html JavaMailSender . With it one can create a http://java.sun.com/products/javamail/javadocs/javax/mail/internet/MimeMessage.html MimeMessage that allows charsets to be specified in conjunction with the subject and the message: MimeMessage mailMessage = mailSender.createMimeMessage(); mailMessage.setSubject("Email subject", "ISO-8859-1"); mailMessage.setText("This is the email message", "ISO-8859-1"); // add sender, receiver, etc mailSender.sendMessage(mailMessage); -- View this message in context: http://camel.465427.n5.nabble.com/Email-character-encoding-tp510814p511111.html Sent from the Camel - Users mailing list archive at Nabble.com.