I'll write the requirements of the mail format in Japan again. - Message body must be ISO-2022-JP. - Subject, from, to (etc.) headers in Japanese must be ISO-2022-JP and be encoded by base64. - Content-Type and Content-Transfer-Encoding must be set to charset=ISO-2022-JP and 7bit.
So, I made the following message. Content-Type: and Content-Transfer-Encoding: were set by <m:header/>. ************************************* <?xml version="1.0" encoding="ISO-2022-JP"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <m:message xmlns:m="http://jboss.com/products/seam/mail"> <m:header name="Content-Type" value="text/plain; charset=ISO-2022-JP"/> <m:header name="Content-Transfer-Encoding" value="7bit"/> <m:from name="???" address="[EMAIL PROTECTED]" /> <m:to name="#{signUpSession.account.nickname}">#{signUpSession.account.email}</m:to> <m:subject>????</m:subject> <m:body type="plain"> ??????#{signUpSession.account.nickname}. </m:body> </m:message> ************************************* The result was, ************************************* Return-Path: <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] Received: from localhost ([127.0.0.1]) by MacBookPro.local (JAMES SMTP Server 2.3.0) with SMTP ID 681 for <[EMAIL PROTECTED]>; Thu, 8 Mar 2007 08:54:06 +0900 (JST) Date: Thu, 8 Mar 2007 08:54:06 +0900 (JST) From: =?Shift_JIS?B?iseXnY7S?= <[EMAIL PROTECTED]> To: =?Shift_JIS?B?gqmCog==?= <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> Subject: ???? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit ------=_Part_2_3191081.1173311646221 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline ????????. ------=_Part_2_3191081.1173311646221-- ************************************* I have some questions and requests. 1. Why does the result become a multi-part although <m:body type="plain"/> is specified ? 2. <m:header/> isn't given in the 2nd part though it was in the 1st part. 3. From: and To: header is encoded by base64 but the character encoding is Shift_JIS (maybe default encoding). These are expected in ISO-2022-JP. 4. Subject: isn't encoded. --Kay View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026048#4026048 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026048 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
