Click here to Skip to main content
15,894,907 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
Randor 6-Oct-20 5:15
professional Randor 6-Oct-20 5:15 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 5:50
markrlondon6-Oct-20 5:50 
AnswerRe: Oh come on Microsoft ... get your act together. Pin
Randor 6-Oct-20 6:10
professional Randor 6-Oct-20 6:10 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 6:38
markrlondon6-Oct-20 6:38 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
Randor 6-Oct-20 7:00
professional Randor 6-Oct-20 7:00 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 7:19
markrlondon6-Oct-20 7:19 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 7:11
markrlondon6-Oct-20 7:11 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 7:34
markrlondon6-Oct-20 7:34 
markrlondon wrote:
markrlondon wrote:
Randor wrote:
1.) Outlook is not opening MHT files via the shell.
[...]
3.) Outlook is invoking the Outlook MHTML protocol handler which is written as a COM component

In that case I accept that we have been speaking at cross purposes. From @OriginalGriff's original message I was under the impression that Outlook was simply saving the email as a MHT file in some temporary location and then invoking whatever was the user's current default MHT handler in the shell to view the file.

Indeed, if Outlook says "click here to open in your browser" then this is, indeed, the behaviour I would expect: That is to open in the browser currently set to handle MHT files, not in Outlook's own protocol handler.

Actually I've just this second tested this in Outlook 2019 and I was right all along!: When I click 'View in Browser', Outlook saves the email as a MHT file (in my case in "C:\Users\myname\AppData\Local\Microsoft\Windows\INetCache\Content.Outlook\VPRZWED6\email.mht") and then runs the browser currently set in the shell as the .MHT handler to view the file. On my machine, since I have never changed the default browser for MHT files, this is Internet Explorer.

Furthermore, I have just selected Edge (Chromium Edge) as the default handler for both .MHT and .MHTML files and I can now replicate @OriginalGriff's problem: Edge shows a plain text rendition of the file whereas the very same file opened in Internet Explorer is rendered properly.

The problem is nothing to do with COM or anything like it. (Blame it on the MHTML COM component which I can see may well be used to generate the MHT files, if you want, but the actual problem is still nothing to do with COM. And the browser is not being opened via COM and COM is not used to pass the file to open).

I've done some more testing and the problem is within Edge's interpretation of .MHT files. When I use Outlook's 'View in Browser' option, it generates a MHT file that Internet Explorer can render correctly whereas Edge cannot. When I use Thunderbird to save the same email to a MHT file, I get the same end result: Internet Explorer can successfully render the file whereas Edge shows me a text rendition instead.

Chromium Edge can, however, successfully render MHT files saved from browsers: I have tested MHT files saved from Chromium Edge itself, Internet Explorer, Firefox with UnMHT, and Waterfox with UnMHT, and they are all rendered successfully in both IE and Edge.

So there is something about emails saved as MHTs that Edge can't render properly. I'll investigate this more and report back.

I'd also like to re-iterate that Outlook really does appear to be doing what I thought it was all along: It is saving the email as a MHT file to the file system (as above) and then running the user's currently set MHT handler to open it.

modified 6-Oct-20 14:13pm.

GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 7:50
markrlondon6-Oct-20 7:50 
QuestionRe: Oh come on Microsoft ... get your act together. Pin
Randor 6-Oct-20 9:56
professional Randor 6-Oct-20 9:56 
AnswerRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 10:47
markrlondon6-Oct-20 10:47 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
Randor 6-Oct-20 10:58
professional Randor 6-Oct-20 10:58 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 11:37
markrlondon6-Oct-20 11:37 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
Randor 6-Oct-20 11:54
professional Randor 6-Oct-20 11:54 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 13:08
markrlondon6-Oct-20 13:08 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 10:22
markrlondon6-Oct-20 10:22 
PraiseRe: Oh come on Microsoft ... get your act together. Pin
Randor 6-Oct-20 10:53
professional Randor 6-Oct-20 10:53 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 11:57
markrlondon6-Oct-20 11:57 
PraiseRe: Oh come on Microsoft ... get your act together. Pin
Randor 6-Oct-20 12:10
professional Randor 6-Oct-20 12:10 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 16:12
markrlondon6-Oct-20 16:12 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
Randor 7-Oct-20 3:22
professional Randor 7-Oct-20 3:22 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon3-Oct-20 13:42
markrlondon3-Oct-20 13:42 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon3-Oct-20 13:54
markrlondon3-Oct-20 13:54 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
dandy723-Oct-20 3:54
dandy723-Oct-20 3:54 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon3-Oct-20 13:36
markrlondon3-Oct-20 13:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.