Clarity

  • 1.  How to format emails send with gel script?

    Posted Sep 15, 2016 08:29 AM

    This is my  script

     

    <gel:script
    xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary">
    <gel:email from="username@mailserver.com"
    fromName="Clarity process"
    to="***.xx@saunis.net"
    subject="Test email">
    <![CDATA[        
    This text is inside the  CDATA tags.
    It should be formatted with line breaks.
    As you can see there are no line breaks.
    What to try next.
    Putting  the text between html tags and
    using html codes to format did not work any better.

     

    ]]>

     

    </gel:email>
    </gel:script>

     


    it comes through allright and the result is below, but no formating.

     

    From: Clarity process [mailto:username@mailserver.com]
    Sent: Donnerstag, 15. September 2016 14:15
    To: consulting
    Subject: Test email

     

    This text is inside the CDATA tags. It should be formatted with line breaks. As you can see there are no line breaks. What to try next. Putting the text between html tags and using html codes to format did not work any better.

     


    using < html > tags and html formating did not work any better.

     

    What is it that I am missing?



  • 2.  Re: How to format emails send with gel script?

    Posted Sep 15, 2016 08:52 AM

    Think I only really played around with all this pre-v13. 

    V13+ allows HTML markup so in an earlier life I suggested using <br> in the body which seemed to work

     

    ref : Send an email containing the list of items or array in Gel script 



  • 3.  Re: How to format emails send with gel script?

    Posted Sep 15, 2016 09:11 AM

    Thanks

    This is on v13.3

    Tried that but then I get

    "Endtag for <br> missing ( </br>)

     

    Have not got to the array yet, a separate email is send for each item. Just starting so no requests for anything else yet, but will copy that thread for future reference.



  • 4.  Re: How to format emails send with gel script?
    Best Answer

    Posted Sep 15, 2016 09:31 AM

    Using CDATA tags and html formatting codes inside did the trick.