Add an image to a customized Filr email notification

  • 7024655
  • 01-Jun-2020
  • 02-Jun-2020

Environment

Filr 4.2

Situation

A Filr administrator wants to add an image to the email notifications sent by Filr when a file is shared. However, after following the Micro Focus Filr documentation to add a public image, the image does not appear in the email message.

Resolution

On each web appliance:

1. Create a new folder called "images" under /opt/novell/filr/apache-tomcat/webapps.

2. Copy the graphics you wish to expose to the new "images" folder. In this example, the graphic is named "Filr-Signatur.png".

3. Edit the email template to include https://<server>/images/Filr-Signatur.png as the link to the graphic.

As an example, edit the footer.vm as follows:

#*
 * Copyright (c) 1998-2015 Novell, Inc. and its licensors. All rights reserved.
 * 
 * This work is governed by the Common Public Attribution License Version 1.0 (the
 * "CPAL"); you may not use this file except in compliance with the CPAL. You may
 * obtain a copy of the CPAL at http://www.opensource.org/licenses/cpal_1.0. The
 * CPAL is based on the Mozilla Public License Version 1.1 but Sections 14 and 15
 * have been added to cover use of software over a computer network and provide
 * for limited attribution for the Original Developer. In addition, Exhibit A has
 * been modified to be consistent with Exhibit B.
 * 
 * Software distributed under the CPAL is distributed on an "AS IS" basis, WITHOUT
 * WARRANTY OF ANY KIND, either express or implied. See the CPAL for the specific
 * language governing rights and limitations under the CPAL.
 * 
 * The Original Code is ICEcore, now called Kablink. The Original Developer is
 * Novell, Inc. All portions of the code written by Novell, Inc. are Copyright
 * (c) 1998-2015 Novell, Inc. All Rights Reserved.
 * 
 * Attribution Information:
 * Attribution Copyright Notice: Copyright (c) 1998-2015 Novell, Inc. All Rights Reserved.
 * Attribution Phrase (not exceeding 10 words): [Powered by Kablink]
 * Attribution URL: [www.kablink.org]
 * Graphic Image as provided in the Covered Code
 * [ssf/images/pics/powered_by_icecore.png].
 * Display of Attribution Information is required in Larger Works which are
 * defined in the CPAL as a work which combines Covered Code or portions thereof
 * with code not governed by the terms of the CPAL.
 * 
 * NOVELL and the Novell logo are registered trademarks and Kablink and the
 * Kablink logos are trademarks of Novell, Inc.
 *#
## This is a hook to add a footer to notification messages. 
#if ($ssVisitor.isHtml())
## Footer information for the HTML mime goes here.
## - - - - -  Customization Note - - - - -
## To embed an image, add the image file to a folder and generate
## a file link for it.  You can then use the download link for the
## image as the src="..." attribute of an HTML <img> tag.
##
## Localization can be achieved using the locale from the visitor
## object.  Example:
##
## #if ($ssVisitor.NotifyDef.Locale.Language == "en")
## ...English text goes here...
## #elseif ($ssVisitor.NotifyDef.Locale.Language == "fr")
## ...French text goes here...
## #else
## ...catch all for languages not handled goes here...
## #end
##
## - - - - Sample Footer with Logo - - - -
## <span>Start text</span>
## <img src="...file link URL for logo...">
## <span>
## #if ($ssVisitor.NotifyDef.Locale.Language == "en")
## English footer text.
## #elseif ($ssVisitor.NotifyDef.Locale.Language == "fr")
## French footer text.
## #else
## Footer text for all other languages.
## #end
## </span>
## - - - - - - - - - - - - - - - - - - - -

<div class="email-logo">
<img src="https://companya.demo.live/images/Filr-Signatur.png">
<br/><br/><b>My_Company</b>   -   Street_Address   -   City_State_Zip</b>
</div>

#else
## Footer information for the plain text mime goes here.
#end