Clarity

  • 1.  Image in GEL Email - v13

    Posted Nov 19, 2013 06:18 AM

    Hello.  Is it possible to send an image (gif/jpg) in a HTML email via GEL? 

    I know that custom images can be uploaded to the themes.  Example:  company logo.

    So if the image can be uploaded, there must be a way to reference it via GEL.

    Has anyone done this?

     

    Thanks,

    Juan



  • 2.  RE: Image in GEL Email - v13

     
    Posted Nov 20, 2013 05:44 PM
    Juan_Ortega:

    Hello.  Is it possible to send an image (gif/jpg) in a HTML email via GEL? 

    I know that custom images can be uploaded to the themes.  Example:  company logo.

    So if the image can be uploaded, there must be a way to reference it via GEL.

    Has anyone done this?

     

    Thanks,

    Juan


    Hi All,

    Any input here for Juan?

    Thanks!

    Chris



  • 3.  RE: Image in GEL Email - v13
    Best Answer

    Posted Nov 23, 2013 03:47 PM

     

    You most likely will need web accessible location for your email images in which the recipient will be able to access.  Then just code the img tags to point to the specific image.

    <gel:parse var="htmlMessage">
        <message><![CDATA[
        <html>
        <h1>Hello World</h1>
        <table>
        <tr><td>fields.png</td><img src="http://localhost:8082/niku/ui/uitk/images/fields.png" /><td></td></tr>
        <tr><td>workspace.png</td><td><img src="http://localhost:8082/niku/ui/uitk/images/workspace.png" /></td></tr>
        </table>
        </html>
        ]]></message>
    </gel:parse>

    Haven't tried this but I think it should work.

    Gene

     



  • 4.  RE: Image in GEL Email - v13

    Posted Nov 24, 2013 11:12 AM

    Thanks Gene.  That worked, but it's best to use a Public website since some users might not have access to the Clarity URL subdirectories. 

    It's nice to know that GEL HTML emails can be formatted like a HTML page using all the HTML tags we learned in '90's:   <table>, <mailto>, <a ref>, <b>, <i>, <BR>, <img scr>

     

    Juan