[jboss-user] [JBoss Seam] - Seam Mail and multipart/alternative bug ?

sebdoby do-not-reply at jboss.com
Tue Feb 13 11:27:52 EST 2007


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


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015870#4015870

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015870



More information about the jboss-user mailing list