Clarity

  • 1.  Embed Image in Gel E-mail

    Posted May 28, 2015 11:58 AM

    I already have created several gel scripts that deliver html e-mails.  However, I am now being asked to include our company's logo in these e-mails.  Using the html <img> tag, the image is included but all that is seen initially is the white box with a red "X" requiring the user to select to download the image.  I tried converting the image to Base64, but our company uses Outlook which blocks that content.  Does anyone have any tips on how to include an image in a gel generated e-mail without requiring the recipient to download the image?



  • 2.  Re: Embed Image in Gel E-mail

    Posted May 28, 2015 12:08 PM

    Hi Tim,


    Try using the base tag in the HTML header tag.
    Then place image in /webroot/ui/evolution2/images folder and the below script should send an email with an image .
    I have hardcoded the URL here for simple and better understanding.

     

    <gel:script xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:core="jelly:core"
    xmlns:file="jelly:com.niku.union.gel.FileTagLibrary"
    xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary"
    xmlns:mail="jelly:email" xmlns:sql="jelly:sql"
    xmlns:util="jelly:util"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">


    <gel:email from="dummy@dummy.com" subject="Test"
    to="anotherdummy@dummy.com">
    <![CDATA[
    <html>
    <head>
    <base href="SCHEDULER URL HERE/niku/ui/images/" target="_blank">
    </head>
    <body>
    <font face="Arial">
    <font size="55">
    <I>Hello</I> <br>
    <img src="SO.png">
    </font>
    </font>
    </body>
    </html>
    ]]></gel:email>
    </gel:script>

     

    Hope it helps.

     

     

    Regards

    Nitin



  • 3.  Re: Embed Image in Gel E-mail

    Posted May 28, 2015 12:55 PM

    Thanks for the suggestion Nitin.  Unfortunately, the recipient is still required to select to download the image.



  • 4.  Re: Embed Image in Gel E-mail

    Posted May 29, 2015 05:50 AM

    Is the image being blocked by your Outlook ?

    Say, you download it for the first time , do any subsequent emails require that download ?

     

    Regards

    Nitin



  • 5.  Re: Embed Image in Gel E-mail

    Posted May 29, 2015 06:54 AM

    Hi Tim,

     

    Could you please try <email:email> for sending the mail

     

    Thanks

    Hari



  • 6.  Re: Embed Image in Gel E-mail
    Best Answer

    Broadcom Employee
    Posted May 29, 2015 11:02 AM

    Hi Tim,

     

    This is probably not a problem with your gel script.  See the following article. It explains a number of reasons why the images may be showing as red x's in outlook.

     

    Red X's in Email Messages

     

    I hope you find this helpful.

     

    Sincerely yours,

     

    Jeanne Gaskill

    Senior Support Engineer - CA PPM (aka CA Clarity)



  • 7.  Re: Embed Image in Gel E-mail

    Posted Jun 01, 2015 04:47 PM

    Thanks for the link Jeanne.  I have been looking into finding a way to get around the red x from Outlook by embedding the image via gel but it appears to be beyond my capabilities at this time.  I have probably sunk far too much time into this already but if I get back around I'll update this post with a solution.