Skip to main content link. Accesskey S
  • HCL Logo
  • HCL Notes and Domino wiki
  • THIS WIKI IS READ-ONLY. Individual names altered for privacy purposes.
  • HCL Forums and Blogs
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • API Documentation
Search
Community Articles > Lotus iNotes > Lotus iNotes messaging > Can iNotes automatic add customer logo picture in signature between internal and external message?
  • Share Show Menu▼
  • Subscribe Show Menu▼

Recent articles by this author

Can iNotes automatic add customer logo picture in signature between internal and external message?

A iNotes user wants to include a customer logo picture signature.
Community articleCan iNotes automatic add customer logo picture in signature between internal and external message?
Added by ~Gus Kitumipulettu | Edited by ~Evelyn Nonveluplopakoi on May 7, 2015 | Version 3
  • Actions Show Menu▼
expanded Abstract
collapsed Abstract
A iNotes user wants to include a customer logo picture signature.
Tags: Domino Server, Mail Routing
Problem

Can iNotes automatic add customer logo picture in signature between internal and external?

Solution

1: How to add pass-thru HTML in iNotes signature.
Support for pass-thru HTML in iNotes was added in Domino 8.0.2 and Domino 8.5. This is not supported in earlier releases.

Use of pass-thru HTML in an iNotes signature requires selecting to use a plain text signature, instead
of rich text. You cannot use pass-thru HTML in a rich text signature.

You can use HTML within a iNotes signature by encapsulating all HTML tags within brackets [ ] to mark the text as pass-thru HTML.

If you use an image, the file must exist on a Web server that the iNotes client can access. For example, you can store the image within the domino/html directory of the Domino server and reference the image using the Web address such as http:///
What follows is an example of HTML code to display a signature with a corporate logo:

<html><b>John Doe</b><br><i>Example Corp, Inc.<br>jdoe@example.com</i><img src="http://inotes_server.com/examplelogo.jpg"></img></html>


The Domino server may need to have "iNotes_WA_AllowPassThruHtml=1" set in its notes.ini in order to use pass-thru HTML in a signature. This setting was required when this feature was first provided in Domino 8.5 and 8.0.2. This setting may not be needed in some later versions of Domino, but its presence on such servers will have no negative effect.

2: How to add customer logo picture in iNotes signature.
1. You can convert logo picture to base64 text via some 3rd party tools. For example: http://tool.oschina.net/encrypt?type=4

Or write some java code to transfer picture as base64 text.
package cn.com;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;

public class Base64Test
{
public static void main(String[] args)
{
String strImg = GetImageStr();
System.out.println(strImg);
GenerateImage(strImg);
}

public static String GetImageStr()
{
String imgFile = "d://test.jpg";
InputStream in = null;
byte[] data = null;
try
{
in = new FileInputStream(imgFile);
data = new byte[in.available()];
in.read(data);
in.close();
}
catch (IOException e)
{
e.printStackTrace();
}

BASE64Encoder encoder = new BASE64Encoder();
return encoder.encode(data);
}

2. Now you can copy the base64 text to inotes signature or domino policy. For example:
<img src='data:img/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEP
ERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/2wBDAQUFBQcGBw4ICA4eFBEUHh4eHh4e
Hh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh7/wAARCAA/AHgDASIA
AhEBAxEB/8QAHAAAAwEBAAMBAAAAAAAAAAAAAAYHBQQBAwgC/8QAPBAAAQIFAwICBQoFBQEAAAAA
AQIDAAQFBhEHEiETMRQiFiNBktIVFzJRVmFxgZHRNEJVV5QkJkZyoUf/xAAZAQEBAQEBAQAAAAAA
AAAAAAADBAIFAAH/xAAxEQABAwMBBQYFBQEAAAAAAAABAAIDBBESsRMhcaHRFDFRYXLBBSJigZEj
QUJSUzL/2gAMAwEAAhEDEQA/APsuCOOsGZFMmjJvNszPRX0nHPoIXtO0q+4HGYkQXq9gZvuzs4+t
HwRRBT7YE5AcVNPUbIgYk8FaYIi+/V77d2d+qPghhl13/wCgMypy6LeVW/GDpTiSnw6WvLlB8uN3
f2e0Qj6Mtt8459EbK3K/yHl1VHgiMFzV0/8AO7O/VHwR436vfbuzv1R8Eb7Af7t59Fnt4/o7l1Vo
giRUyd1VlplLk1dVj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MweBdpay9kJqgPwI4ga3updXabpXRqzOUmYsa61uyjpaUpt0qQrHYg7uQRgw5U6i2HI6
P1OsM2tWmqXUVNmYlFOEzTgQ7tQRzwM5OM9obNQ5W/V1iUVa10UqlyryA2pmcQkqU7k8oykk5Hs+
6Nu8U1lq0XxSKtKSNTSlAROTmEtg7huKuCBkZ9ncxmSsdI2MZHeRf5j03fa60ykDHPOPcDb5R138
lGNPDpt6cUj5Js65pOf8QOg/MKPTbVtPKvN27x9EJIwIie/Vf+41n++38ENFj1S46XJVWfvO56RV
2Gkt9EU4BakEkgghKRkqO0D8DGK9pk/UyG7zJPMLVA/Z/p4nf5AaFUWCMi2bgp9wyq5inrUQ0vY4
lYwpJxkfWCCOxBIgjlrrLvqMmxPyExJTKSpmYaU04AcZSoEH/wAMTwaG6eAAfJczxx/GOfvFLgho
qiWK+zcRfwKGWnilttGg8VNPmO08/pcz/mOfvGwzplaTNpP2siSeFLfmBMuN+IVuLgxg7u/8o4hz
gjbqyoda7yfusNo6dv8AywD7KafMdp5/S5n/ADHP3g+Y7Tz+lzP+Y5+8UuCNdvqf9D+Ss9hpv8x+
Ap/TNHNPZCYS+mgImFpOU+JdW6kH/qTg/mIdZqnyszTHqatpKZV1lTCm0DaNhG0gY7cGOuCBknkl
IL3E28U0cEcYsxoHBTQaHaeAACmTPHH8Y5+8bNoaZ2lalY+VaLJPMzXSU1uW+pY2qxng/gIcoIR1
ZO8YueSOKNtHTsIc1gBHkuOoUyRn35N6bl0POSb4mJdShyhwJKcj8lGOe6KDTrkoj9GqrSnZN/b1
EJWUk7VBQ5H3gRqQRO1xaQQe5OWNcCCO9TT5jtPP6XM/5jn7xsUHTK06HIVCSpso+y1PhHWPiFKV
lBJQUk9iCcw5wQ76ueRuL3kjihZSQRuyawA8Fk21b8hb8quXkUqw4rctSsZPGAAAAEpHsAAA5+sw
RrQROqF//9k='/>

Now you will be able to use custom logo in both internal and external message.

  • Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (1)
collapsed Versions (1)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (3)May 7, 2015, 8:26:05 AM~Evelyn Nonveluplopakoi  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedAbout
  • HCL Software
  • HCL Digital Solutions community
  • HCL Software support
  • BlogsDigital Solutions blog
  • Community LinkHCL Software forums and blogs
  • About HCL Software
  • Privacy
  • Accessibility