Reputation: 2255
There may be absolutely no way to do this, and it might also be frowned upon. When I send a html email to outlook, the user is sometimes asked if they want to download the images and sometimes they just load. My first question is why is that? And my second question is, is there a way to prevent outlook from asking and have the images auto download, or is that something only the user can do?
Upvotes: 0
Views: 772
Reputation: 66235
If the images are embedded image attachments, there won't be a prompt.
If the HTML references external images, the message must be stamped 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.
If you are using Redemption (I am its author), you can set set PR_BLOCK_STATUS
property using RDOMail.DownloadPictures
property: http://www.dimastr.com/redemption/RDOMail.htm
2.2.1.1 PidTagBlockStatus
Type: PtypInteger32 8
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.
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)
Upvotes: 3