Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Preview EML files

24 views
Skip to first unread message

Zdravko

unread,
Nov 1, 2009, 7:31:11 AM11/1/09
to
Hi all
does somebody know how to preview EML files in Webbrowser control
(Shell.Explorer.2) ?

Thank you
Zdravko

PA Bear [MS MVP]

unread,
Nov 1, 2009, 7:23:15 PM11/1/09
to

Windows version? IE version? Is Windows LIVE Mail installed?

rob^_^

unread,
Nov 2, 2009, 1:03:38 AM11/2/09
to
Hi Zd,

Inject the file contents within <pre> tags.

Regards.

"Zdravko" <user.c...@gmail.com> wrote in message
news:OFSku8uW...@TK2MSFTNGP04.phx.gbl...

Zdravko

unread,
Nov 2, 2009, 3:46:07 AM11/2/09
to
Hi
I am looking for general option, for XP and above, from IE 6 and above, with
and without Windows LIVE.
I will preview saved message inside my app.
Have EML files, and will preview those files in webbrowser control (or any
other which can display it).
I can rename it to MHT, it works fine, but
sometime encoding is not right (it can be different encoding for each EML).

Thank you

"PA Bear [MS MVP]" <PABe...@gmail.com> wrote in message
news:OBBU9K1W...@TK2MSFTNGP06.phx.gbl...

PA Bear [MS MVP]

unread,
Nov 2, 2009, 6:39:31 PM11/2/09
to

EML files should open in Outlook Express, not IE or a browser.

Zdravko

unread,
Nov 3, 2009, 4:50:22 AM11/3/09
to
Hi
is there other option?
I mean, I need to see email body inside my app.

Zdravko

rob^_^

unread,
Nov 3, 2009, 6:00:30 AM11/3/09
to
Hi Zd,

There is the outlook listview control to view your outlook folders and
launch the outlook.

Inject this js snippet into a web page hosted in your WebBrowser control

document.write('<OBJECT style=\"left:200px\"
classid=\"CLSID:0006F063-0000-0000-C000-000000000046\" id=\"ViewCtlFolder\"
codebase=\"http://activex.microsoft.com/activex/controls/office/outlctlx.CAB#ver=9,0,0,3203\"
tabIndex=\"1\" VIEWASTEXT>');
document.write('<param name=\"Namespace\" value=\"MAPI\">');
document.write('<param name=\"Folder\" value=\"Inbox\">');
document.write('<param name=\"Restriction\" value=\"\">');
document.write('<param name=\"DeferUpdate\" value=\"0\">');
document.write('</OBJECT>');

or you can host the control in a Windows Form. Use CreateObject.

For further tips see the .eml file extension handler entries in your
registry.

If you are writing your own POP server, then that is a different bag of
fish.

Regards.

"Zdravko" <user.c...@gmail.com> wrote in message

news:uWH4HsGX...@TK2MSFTNGP02.phx.gbl...

PA Bear [MS MVP]

unread,
Nov 3, 2009, 1:18:16 PM11/3/09
to
EML files are associated with Outlook Express, Windows Mail, and Windows
Live Mail, not Outlook (whose messages are MSG format).


rob^_^ wrote:
> Hi Zd,
>
> There is the outlook listview control to view your outlook folders and

> launch the outlook....

Zdravko

unread,
Nov 3, 2009, 2:22:33 PM11/3/09
to

Hi
many thanks for you mail.

I am using Outlook ViewCtl for messages display (on left side of my app).
Then (on Selection event) I am saving message to disc.
In that moment I run code which displays saved message in Webbrowser control
(on right or bottom side of my app).
Now, you tell me that I put this code into Webbrowser control.
At first moment, I think that that code will display Inbox Folder?
I will try that but I hope that you understand that I need message
(HTMLBody) of EML?

Zdravko


"rob^_^" <iecust...@hotmail.com> wrote in message
news:utSDeTHX...@TK2MSFTNGP04.phx.gbl...

Zdravko

unread,
Nov 3, 2009, 4:26:59 PM11/3/09
to
Hi
Ok, but I am using Redemption (http://www.dimastr.com/redemption/) to save
Outlook message
to MHT, or EML or HTML ... and to avoid security message.

MHT works OK, but it also includes message header's which I do not need
(From: To: Subject ...)
HTML works OK on Outlook 2007 because it saves images to separate
folder(Outlook 2003 do not do that)
EML is just what I need - without header, but with embeded images, BUT ...
it will not handle encoding on proper way, like MHT do.
Now, I need to find a way that message preview goes fast (if I go to remove
header or go to inject some code in each
message, it slow's down preview)

Zdravko

PA Bear [MS MVP]

unread,
Nov 3, 2009, 8:31:44 PM11/3/09
to

Repeat after me:

1. An EML file is *not* an Outlook message and will not open in Outlook.

2. An EML file *is* an Outlook /Express/ (or Windows Mail or Windows Live
Mail) message and will open in any of those applications.

3. An Outlook message has an MSG extension.

4. Outlook and Outlook Express are /not/ the same application.

Zdravko

unread,
Nov 4, 2009, 4:18:38 AM11/4/09
to
Hi
looks you are working in Microsoft?


> Repeat after me:
>
> 1. An EML file is *not* an Outlook message and will not open in Outlook.

I will not open EML file in Outlook. I have that file saved on my HD, and
wil preview that message.


> 2. An EML file *is* an Outlook /Express/ (or Windows Mail or Windows Live
> Mail) message and will open in any of those applications.

I will not open EML file in Outlook. I have that file saved on my HD, and
wil preview that message.

PA Bear [MS MVP]

unread,
Nov 4, 2009, 7:04:02 PM11/4/09
to
MS MVPs neither work for nor represent Microsoft.

No one from Microsoft monitors this newsgroup: We're all voluteers.

An EML file will not and cannot open in OL or, I suspect, any application
other than OE, WinMail, or WLMail (at least not in a usable format).
--
~Robear Dyer (PA Bear)
MS MVP-IE, Mail, Security, Windows Client - since 2002
www.banthecheck.com

Zdravko

unread,
Nov 5, 2009, 2:39:34 AM11/5/09
to
Ok
as you allready understand, I do not need to open EML in Outlook or Outlook
express.
I just need to preview EML message in Webbrowser or some other control -
not in Outlook, not in Outlook Express.
I will preview it inside my app.

Everything works fine if I rename EML to MHT and preview it in Webbrowser,
with:
WebbrowserCtrl.Navigate2("MyMhtFile.mht","")
You can try yourself (rename EML to MHT and open it in Internet Explorer),
or
in Internet Explorer ActiveX control - Shell.Explorer.2

BUT
encoding is not properly displayed if EML contain only text.

Zdravko

PA Bear [MS MVP]

unread,
Nov 5, 2009, 4:49:05 PM11/5/09
to
WYSIWYG

Zdravko

unread,
Nov 6, 2009, 6:09:29 AM11/6/09
to
> WYSIWYG

Hi
not sure what do you mean?

Vincenzo Di Russo [MVP]

unread,
Nov 6, 2009, 7:28:19 AM11/6/09
to
Zdravko wrote:

http://en.wikipedia.org/wiki/WYSIWYG

--
Vincenzo Di Russo
MicrosoftR MVP - Most Valuable Professional since 2003
Windows Internet Explorer, Windows Desktop Experience & Security
My MVP Profile: https://mvp.support.microsoft.com/profile/Vincenzo
My Blog: http://blogs.dotnethell.it/vincent/

Zdravko

unread,
Nov 6, 2009, 4:50:45 PM11/6/09
to
Ok, but what have WYSIWYG with EML preview?
0 new messages