1 Reply Latest reply on Jun 25, 2009 7:50 PM by gtnguyen

    Seam Mail messages identified as Junk by some email cients?

    gtnguyen

      I've been using Seam Mail to send emails and that's working fine with the code below:


      <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">
       
          <m:from name="company@test.com" address="company@test.com" />
          <m:to name="#{toemail}" address="#{toemail}" />
          <m:subject>Test</m:subject>
         
          <m:body>
               <p><h:outputText value="test"/></p>
          </m:body>
         
      </m:message>


      However, some email clients would mistaken these messages as Junk.  When that happened, the email that's generated by the Seam Mail template would have an attachment, even though there was none ...


      I compared this against a message that was sent using regular javax.mail (same STMP server, same Sender/Receipient, same message, no attachment).  The javax.mail message gets through without any problem, the Seam Mail one has an attachment and ends up in the Junk box ????


      Has anyone else run into this?  Please advise.


      Regards,
      G.T.Nguyen

        • 1. Re: Seam Mail messages identified as Junk by some email cients?
          gtnguyen

          Looking further, it appears that email messages rendered by Seam Mail has content-type that's multipart/mixed.


          I'd like to be able to send mail that has text/plain content-type.  With javax.mail.Message, I can do it with setContent.


          How can I set the content type with the Renderer?  Setting


          <m:body type="plain">



          only changes the email output, not its header.


          Regards,
          G.T. Nguyen