3 Replies Latest reply on Apr 30, 2008 11:08 PM by kukeltje

    Formatting mail node text

    francis1970

      Hi all,
      I'm looking for a little advice:
      Question #1
      how can I use some basic formatting in my mail nodes (at least line feeds and tabs) ?

      I have tried with \n and \t but it yields nothing.....

      <mail-node name="MailNotify"
      to='#{mailActor}'
      subject='You have a new CR N.#{idAnomalia}
      text='In charge to :#{developer} \n
      Description: #{textCR}

      </mail-node>

      #Question2 anybody managed to send e-mail in HTML format ???
      Thanks a lot
      Francesco

        • 1. Re: Formatting mail node text
          kukeltje

          question 1: I have no idea. sorry.
          question 2: jbpm does not support html mail (yet) but some have made it work by customizing the mail class

          • 2. Re: Formatting mail node text
            francis1970

            thanks for your reply
            Well I have found a way to use at least line feeds.
            I have used CDATA to inside the fields. So I get a line feed.

            If anybody can shed some light about using HTML mails it would be great
            Regards
            Francesco



            <mail-node name="MailAssegnazione" to='#{mailActor}'
             subject='Anomalia N.#{idAnomalia}>
             <text>
             <![CDATA[
            In Charge to: #{manager}
            Text: #{textCR}'
             ]]>.
             </text>
             <transition to="Assegnata"></transition>
            </mail-node>


            • 3. Re: Formatting mail node text
              kukeltje

              1: Hmm... CDATA, I should have known... sorry...

              2: html mail has been discussed in the form, you currently have to write your own implementation of the mail node (or adapt the existing one) so it uses MIME.