2
votes

We have a corporate signature that I am making a tool in PHP webform to automatically generate the file. I been using Lotus Notes 9 myself and it seems to work fine. However, the folks that still use Notes 8.5, the image file comes back broken. The image is already on the server where it converts it to base64 and plops it directly into the img tag.

$imgPath   = "/opt/intranet/signature/images/";
$imgFile   = "logo.png";
$data      = file_get_contents($imgPath . $imgFile);
$base      = base64_encode($data);
$image     = 'data:image/png;base64,'.$base;
$logo01    = "<p><img src=\"$image\" alt=\"corp logo\" />";

And I really cannot figure out if there is a coding issue for embedded graphics or Lotus setting that needs to be changed. The HTML file it generates works regardless.

Thanks for any assistance

1

1 Answers

3
votes

Base64 embedded images don't work in Notes Client 8.5 HTML signature.

Use an URL for img src. It doesn't matter if it's "file://..." or a "http://...". The picture will always be embedded in mail body.