3 Replies Latest reply on Jul 13, 2007 10:31 AM by pmuir

    seam email unwanted text in email

    susnet

      I wonder why my emails look like this:

      ------=_Part_8_21777063.1180128429593 Content-Type: multipart/alternative; boundary="----=_Part_9_28910288.1180128429609" ------=_Part_9_28910288.1180128429609 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline ------=_Part_9_28910288.1180128429609 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

      Name:sus

      Email:s@s.se

      Message:test

      ------=_Part_9_28910288.1180128429609-- ------=_Part_8_21777063.1180128429593--


      -----
      Why does this Part_X get printed out in the email? Is there some configuration that i have missed?

      This is what my code looks like:

      <?xml version="1.0" encoding="ISO-8859-1" ?>
      
      <m:message xmlns="http://www.w3.org/1999/xhtml"
       xmlns:m="http://jboss.com/products/seam/mail"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core">
      
       <m:header name="Content-Transfer-Encoding" value="8bit"/>
       <m:header name="Content-Type" value="text/html; charset=iso-8859-1;" />
       <m:header name="Content-Disposition" value="inline" />
      
       <m:from name="Webmaster X.se" address="webmaster@X.se" />
       <m:to name="X" address="X@X.se" />
       <m:subject>Contakt: <h:outputText value="#{contact.subject}"/> </m:subject>
      
       <m:body type="html">
      
       <html>
       <p><b>Name:</b> <h:outputText value="#{contact.visitorName}"/></p>
       <p><b>Email:</b> <h:outputText value="#{contact.email}"/></p>
       <p><b>Message:</b> <h:outputText value="#{contact.message}"/></p>
       </html>
       <f:facet name="alternative">Sorry your emailprogram does not support HTML.</f:facet>
       </m:body>
      
      </m:message>