且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

html电子邮件Outlook要求下载图像

更新时间:2023-12-02 18:16:58

如果图像是嵌入式图像附件,则不会出现提示.

If the images are embedded image attachments, there won't be a prompt.

如果HTML引用了外部图像,则该消息必须带有特殊的属性标记,该属性不能传输,只能由最终用户或通过编程方式在本地设置(PR_BLOCK_STATUS属性-参见[MS-OXOMSG]的摘录.pdf以下.

If the HTML references external images, the mesage must be stampted with a special property that cannot be transmitted and can only be set locally, either by the end user or programmatically (PR_BLOCK_STATUS property - see an excerpt from [MS-OXOMSG].pdf below.

如果您使用的是兑换,则可以使用RDOMail.DownloadPictures属性设置该属性: http://www.dimastr.com/redemption/RDOMail.htm

If you are using Redemption, can set set that property using RDOMail.DownloadPictures property: http://www.dimastr.com/redemption/RDOMail.htm

2.2.1.1 PidTagBlockStatus

2.2.1.1 PidTagBlockStatus

类型:PtypInteger32 8

Type: PtypInteger32 8

指示用户对查看外部内容(例如链接)的偏好 到邮件正文中的HTTP服务器上的图像).客户可以忽略此 重视并始终基于其他因素允许或阻止外部内容 (例如发件人是否在安全列表中).如果使用此属性, 那么默认操作是阻止外部内容.但是,如果 该属性的值在一定范围内,然后查看外部 内容是允许的.允许值是从 PidTagMessageDeliveryTime:由于邮件的发件人没有 知道此值后,发送方将无法可靠地将PidTagBlockStatus设置为 允许的值.

Indicates the user's preference for viewing external content (such as links to images on an HTTP server) in the message body. A client MAY ignore this value and always allow or block external content based on other factors (such as whether the sender is on a safe list). If this property is used, then the default action is to block the external content. However, if the value of this property falls within a certain range, then viewing external content is allowed. The allowed value is computed from PidTagMessageDeliveryTime: since the sender of a message does not have knowledge of this value, the sender cannot reliably set PidTagBlockStatus to the allowed values.

要计算允许值,请转换为 PidTagMessageDeliveryTime到PtypDouble,floatdate,日期为 表示为从1899年12月30日午夜开始的天数. 以下公式:result =((floatdate-floor(floatdate))* 100000000) + 3; floor(x)返回最大整数? X.转换PtypDouble 将结果值转换为32位整数计算值.客户应设置 将PidTagBlockStatus转换为computevalue,以允许外部内容.但是,当 确定是否接受外部内容,客户应允许 外部内容之间的绝对值之差 计算值,并且PidTagBlockStatus的值等于或小于1.

To compute the allowed values, convert the value of PidTagMessageDeliveryTime to a PtypDouble, floatdate, where the date is represented as the number of days from midnight, December 30, 1899. Apply the following formula: result = ((floatdate - floor(floatdate)) * 100000000) + 3; where floor(x) returns the largest integer ? x. Convert the PtypDouble value result to a 32-bit integer computedvalue. Clients SHOULD set PidTagBlockStatus to computedvalue to allow external content. However, when determining whether to accept external content, clients SHOULD allow external content if the absolute value of the difference between computedvalue and the value of PidTagBlockStatus is 1 or less.