4 Replies Latest reply on Feb 13, 2007 11:40 AM by Gavin King

    Seam Mail and multipart/alternative bug ?

    Seb Doby Newbie

      Hello,

      When I send a mail with alternate facet in the body of message, the ContentType text/plain appear after the ContentType text/html :

      ------=_Part_6_13694334.1171380287058
      Content-Type: multipart/alternative;
       boundary="----=_Part_7_10830435.1171380287058"
      
      ------=_Part_7_10830435.1171380287058
      Content-Type: text/html; charset=us-ascii
      Content-Transfer-Encoding: 7bit
       <html>
       <body>
       <p><b>sebdoby,</b></p>
       <p>This is an example <i>HTML</i> email sent by Seam.</p>
       <p>It has an alternative text body for mail readers that don't support html.</p>
       </body>
       </html>
      ------=_Part_7_10830435.1171380287058
      Content-Type: text/plain; charset=us-ascii
      Content-Transfer-Encoding: 7bit
      
      This is the alternative text body for mail readers that don't support html
      ------=_Part_7_10830435.1171380287058--
      
      ------=_Part_6_13694334.1171380287058--
      



      So, the html is never read by your email client application (tested with thunderbird)

      If you put text/html at the end, it runs correctly :

      ------=_Part_6_13694334.1171380287058
      Content-Type: multipart/alternative;
       boundary="----=_Part_7_10830435.1171380287058"
      ------=_Part_7_10830435.1171380287058
      Content-Type: text/plain; charset=us-ascii
      Content-Transfer-Encoding: 7bit
      
      This is the alternative text body for mail readers that don't support html
      ------=_Part_7_10830435.1171380287058
      Content-Type: text/html; charset=us-ascii
      Content-Transfer-Encoding: 7bit
       <html>
       <body>
       <p><b>sebdoby,</b></p>
       <p>This is an example <i>HTML</i> email sent by Seam.</p>
       <p>It has an alternative text body for mail readers that don't support html.</p>
       </body>
       </html>
      
      ------=_Part_7_10830435.1171380287058--
      
      ------=_Part_6_13694334.1171380287058--
      




      Version : 1.1.6.GA