2 Replies Latest reply on Jul 14, 2010 11:26 AM by Jean Luc

    how to put line breaks in Seam-generated emails (or pure-text emails)?

    Jean Luc Apprentice

      Emails generated with Seam's template are XHTML. If you want a line break, you can add <br/> in the template. That works for predefined text. I also have some content that is generated by the application which consists of multi-line strings and which ends up in the email via the usual ${variable} mechanism. The line breaks in the original text are ignored as XHTML ignores CRLF. Putting <br/> doesn't help either, as the contents of variable is HTML-escaped to &lt;br/&gt;

      Is there a way to avoid the HTML-escaping? Or, as an alternative, to send pure-text emails instead?

      Thanks a lot,