dongxinm279890 2015-02-06 21:02
浏览 108
已采纳

HTML签名中的嵌入图像适用于Lotus Notes 9,但不适用于8.5

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条回答 默认 最新

  • douzhuan0309 2015-02-06 21:19
    关注

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 对于这个问题的解释说明
  • ¥200 询问:python实现大地主题正反算的程序设计,有偿
  • ¥15 smptlib使用465端口发送邮件失败
  • ¥200 总是报错,能帮助用python实现程序实现高斯正反算吗?有偿
  • ¥15 对于squad数据集的基于bert模型的微调
  • ¥15 为什么我运行这个网络会出现以下报错?CRNN神经网络
  • ¥20 steam下载游戏占用内存
  • ¥15 CST保存项目时失败
  • ¥20 java在应用程序里获取不到扬声器设备
  • ¥15 echarts动画效果的问题,请帮我添加一个动画。不要机器人回答。