zoukankan      html  css  js  c++  java
  • [转]Outlook 2016 will not display Web linked images

    本文转自:https://community.spiceworks.com/topic/1952626-outlook-2016-will-not-display-web-linked-images

    Problem:

    I have one client with Outlook 2016 that will not show Web linked images in received emails.  Even if you choose download image it will not show.  This is on a new fresh computer with Windows 7 pro, Office 2016 and Outlook 2016 with gmail account.  The images will show in Webmail and will also show if forward to a different account running the same versions of Windows and Office.  Compared settings of the two computer and they look the same, in registry, Office and Internet Explorer.  I have verified the linked images are still current and working, they have not been moved.

    Things I have tried:
    Outlook: File/Options/Trust Center Settings/ Uncheck Don't download pictures auto html/rss
    IE: Untick Do not save encrypted files to disk
    Registry: HKEY_CURRENT_USERSoftwareMicrosoftOffice16OutlookOptionsMailDWORD: SendPicturesWithDocument Value:1  This setting was not there and left it this way and instructed and compared to other client. 
    Outlook: Add Sender to Safe Senders List
    Windows: Checked Temporary Internet Files folder and Location
    Registry: HKEY_CURRENT_USERSoftwareMicrosoftOffice16CommonDWORD: BlockHTTPimages Value: 1 This setting was not there and left it this way and instructed and compared to other client.

    Solution:

    Sorry this took so long for me to get back to.  So I tried at least a dozen different things I found online that seem to work for everyone else.  The fix for me was to move the Temporary Internet Files folder.  I simply went to Internet Explorer > Tools > Internet Options > General Tab > Browsing History > Settings Button and choose Move Folder.  Restarted the computer and there I go - worked -.  Thank you for the suggestions.

    Other method:

    https://stackoverflow.com/questions/6706891/embedding-image-in-html-email

    The other solution is attaching the image as attachment and then referencing it html code using cid.

    HTML Code:

    <html>
    <head>
    </head>
    <body>
    <img width=100 height=100 id=""1"" src=""cid:Logo.jpg"">
    </body>
    </html>
    C# Code:

    EmailMessage email = new EmailMessage(service);
    email.Subject = "Email with Image";
    email.Body = new MessageBody(BodyType.HTML, html);
    email.ToRecipients.Add("abc@xyz.com");
    string file = @"C:UsersacvPicturesLogo.jpg";
    email.Attachments.AddFileAttachment("Logo.jpg", file);
    email.Attachments[0].IsInline = true;
    email.Attachments(0).ContentId = "Logo.jpg";
    email.SendAndSaveCopy();

  • 相关阅读:
    PHP数组操作,数组排序,数组元素操作,数组元素定位
    提高PHP编程效率的53个要点
    javascript的一些简单的应用
    数字时钟
    一个限定变量范围的小技巧
    windows编程学习——1 关闭窗口不退出
    比木马NB多了
    模拟时钟
    恶搞程序——黑屏
    用白色画笔再画一遍,代替擦除
  • 原文地址:https://www.cnblogs.com/freeliver54/p/11193247.html
Copyright © 2011-2022 走看看