3 Replies Latest reply on Jun 2, 2008 11:18 AM by Romain Cherchi

    Email : Encoding problem in the subject

    Romain Cherchi Newbie

      Hi guys,


      I use jboss 4.0.5.GA and seam 1.2.1.GA.


      I'm trying to send an email using facets.


      I have an encoding issue in the subject area. The rest works fine.


      Here is the email template :



      <?xml version="1.0" encoding="UTF-8"?>
      <m:message xmlns="http://www.w3.org/1999/xhtml"
                     xmlns:s="http://jboss.com/products/seam/taglib"
                     xmlns:ui="http://java.sun.com/jsf/facelets"
                     xmlns:f="http://java.sun.com/jsf/core"
                     xmlns:m="http://jboss.com/products/seam/mail"
                     xmlns:c="http://java.sun.com/jstl/core"
                     xmlns:h="http://java.sun.com/jsf/html"
                     charset="UTF-8">
                     
           <m:from name="#{poiInfoManager.emailSenderName}">invitation@easycity.com</m:from>
           <ui:repeat     value="#{poiInfoManager.mailSet}"
                          var="email">
                <m:bcc name="#{email}" address="#{email}" />
           </ui:repeat>
           
           <m:subject>éé Do you know #{poiInfoManager.poi.nameBase} in #{poiInfoManager.poi.address.locality} ?</m:subject>
           
           <m:body>
                <p>
                     #{poiInfoManager.msg}
                </p>
                <p>
                     #{poiInfoManager.poi.address.locality}
                </p>
           </m:body>
           
      </m:message>



      I receibe an email like this :



      From : Romain éééémanuel
      Subject : &#233;&#233; Do you know LE RELAIS DE L'ENTREC&#212;TE in PARIS ?
      Body:
      
      
      
      éééé à ellel àò !!!
      
      PARIS 
      
      




      Any clue ?


      Thanks for your time.


      Best,


      Romain