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 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改
  • ¥20 wireshark抓不到vlan
  • ¥20 关于#stm32#的问题:需要指导自动酸碱滴定仪的原理图程序代码及仿真
  • ¥20 设计一款异域新娘的视频相亲软件需要哪些技术支持