2 Replies Latest reply on Jan 10, 2008 9:47 AM by Terry

    Seam Mail in HTML format doesn't work in Outlook

    Terry Apprentice

      Links in HTML mail sent via Seam mail don't work in Microsoft Outlook. Email is rendered in Outlook with link, but when link is clicked Outlook opens Windows File Open dialog box asking for executable to run the link. Links work in hotmail.


      Probably due to missin META Tags in HTML Header? I tried putting META tag in HTML header, but META tags get removed... see below.


      mail-message.xhtml
      ------------------
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:s="http://jboss.com/products/seam/taglib"
       xmlns:m="http://jboss.com/products/seam/mail"
       importance="normal">
      
       <m:message>
       <m:from name="xyz" address="xyz@xyz.com" />
       <m:to name="#{abc.abc}">#{abc.abc}</m:to>
       <m:subject>Subject</m:subject>
       <m:body>
       <html>
       <body>
       <h:outputText>
       <p>Mail body text.</p>
       Click <a href="www.tisc.edu.au" target="_blank">here</a> to continue...
       <p>Mail body text.</p>
       </outputText>
       </body>
       </html>
       <f:facet name="alternative">
       <h:outputText>
       Sorry, your mail reader doesn't support HTML...
       </h:outputText>
       </f:facet>
       </m:body>
       </m:message>
      
      </ui:composition>
      
      
      HTML Source of email from Outlook email
      ---------------------------------------
      <html>
       <body>
       <p>Mail body text.</p>
       Click <a href="www.tisc.edu.au" target="_blank">here</a> to continue...
       <p>Mail body text.</p>
       </body>
      </html>
      
      
      I tried putting following in mail-message.xhtml in body tag, but somehow <META...> tag gets removed during rendering phase...
      <head>
       <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"/>
      </head>