PC Review


Reply
Thread Tools Rate Thread

How can I save an HTML email with graphics?

 
 
IMDWalk
Guest
Posts: n/a
 
      22nd Nov 2008
In Internet Explorer, when I save a web page as a file, I am given the
options to save it as:
- Web Page, complete (*.htm, *.html)
- Web Archive, single file (*.mht)
These options save the emails as HTML files with all embedded graphics. The
graphics are stored in a separate folder in the same directory as the HTML
file; the folder is given the same name as the file, with an "_files"
appended on the end.

However, in Outlook (2003), my only option is to save as HTML with no
graphics. This forces me to save the file in Outlook, then open a browser,
open the file in the browser, and resave it. This is highly inefficient.

Does anyone know if there is a way to include these other save options in
Outlook? Is there a plugin, or a config change, or some other option?

 
Reply With Quote
 
 
 
 
Duncan McC
Guest
Posts: n/a
 
      24th Nov 2008
In article <136404BA-F087-417C-AC5D-(E-Mail Removed)>,
(E-Mail Removed) says...
> In Internet Explorer, when I save a web page as a file, I am given the
> options to save it as:
> - Web Page, complete (*.htm, *.html)
> - Web Archive, single file (*.mht)
> These options save the emails as HTML files with all embedded graphics. The
> graphics are stored in a separate folder in the same directory as the HTML
> file; the folder is given the same name as the file, with an "_files"
> appended on the end.
>
> However, in Outlook (2003), my only option is to save as HTML with no
> graphics. This forces me to save the file in Outlook, then open a browser,
> open the file in the browser, and resave it. This is highly inefficient.
>
> Does anyone know if there is a way to include these other save options in
> Outlook? Is there a plugin, or a config change, or some other option?


I use some VBA that I found (slipstick website?) sometime ago. Works
great for me, it saves out the pics from any (open) email. I modified
it a bit, but the old code is there, commented out. I also made some
changes to delete pics from emails (that I find handy for html emails
with embedded graphics).

You'll need to change the macro security level to let the code run
(change it so that it prompts you to run it).

Enter the VBA by pressing <Alt><F11> to open the code window - and watch
the word-wrap that has undoubtably happenned in my paste below...

' Save all Attachments in an (open) email=3F
Sub SaveAttachments()
Dim objCurrentItem As Outlook.MailItem
Dim colAttachments As Outlook.Attachments
Dim objAttachment As Outlook.Attachment

Set objCurrentItem = Application.ActiveInspector.CurrentItem
Set colAttachments = objCurrentItem.Attachments
Set strFolderpath = CreateObject("WScript.Shell")

For Each objAttachment In colAttachments
' objAttachment.SaveAsFile (strFolderpath.SpecialFolders("Desktop") &
"\" & objAttachment.FileName)
' MsgBox (strFolderpath.SpecialFolders("MyDocuments") & "\email
attachments\" & objAttachment.FileName)
objAttachment.SaveAsFile (strFolderpath.SpecialFolders
("MyDocuments") & "\email attachments\" & objAttachment.FileName)
Next

Set objAttachment = Nothing
Set colAttachments = Nothing
objCurrentItem.Close (olDiscard)
Set objCurrentItem = Nothing

End Sub
' Delete all Attachments in an (open) email=3F
Sub DeleteAttachments()
Dim objCurrentItem As Outlook.MailItem
Dim colAttachments As Outlook.Attachments
Dim objAttachment As Outlook.Attachment

Set objCurrentItem = Application.ActiveInspector.CurrentItem
Set colAttachments = objCurrentItem.Attachments
' Set strFolderpath = CreateObject("WScript.Shell")

While colAttachments.Count > 0
colAttachments.Remove 1
Wend

Set objAttachment = Nothing
Set colAttachments = Nothing
objCurrentItem.Save
objCurrentItem.Close (olDiscard)
Set objCurrentItem = Nothing

End Sub

--
Duncan
 
Reply With Quote
 
IMDWalk
Guest
Posts: n/a
 
      27th Nov 2008
Great...thanks, Duncan! I'll give it a try.

"Duncan McC" wrote:

> In article <136404BA-F087-417C-AC5D-(E-Mail Removed)>,
> (E-Mail Removed) says...
> > In Internet Explorer, when I save a web page as a file, I am given the
> > options to save it as:
> > - Web Page, complete (*.htm, *.html)
> > - Web Archive, single file (*.mht)
> > These options save the emails as HTML files with all embedded graphics. The
> > graphics are stored in a separate folder in the same directory as the HTML
> > file; the folder is given the same name as the file, with an "_files"
> > appended on the end.
> >
> > However, in Outlook (2003), my only option is to save as HTML with no
> > graphics. This forces me to save the file in Outlook, then open a browser,
> > open the file in the browser, and resave it. This is highly inefficient.
> >
> > Does anyone know if there is a way to include these other save options in
> > Outlook? Is there a plugin, or a config change, or some other option?

>
> I use some VBA that I found (slipstick website?) sometime ago. Works
> great for me, it saves out the pics from any (open) email. I modified
> it a bit, but the old code is there, commented out. I also made some
> changes to delete pics from emails (that I find handy for html emails
> with embedded graphics).
>
> You'll need to change the macro security level to let the code run
> (change it so that it prompts you to run it).
>
> Enter the VBA by pressing <Alt><F11> to open the code window - and watch
> the word-wrap that has undoubtably happenned in my paste below...
>
> ' Save all Attachments in an (open) email=3F
> Sub SaveAttachments()
> Dim objCurrentItem As Outlook.MailItem
> Dim colAttachments As Outlook.Attachments
> Dim objAttachment As Outlook.Attachment
>
> Set objCurrentItem = Application.ActiveInspector.CurrentItem
> Set colAttachments = objCurrentItem.Attachments
> Set strFolderpath = CreateObject("WScript.Shell")
>
> For Each objAttachment In colAttachments
> ' objAttachment.SaveAsFile (strFolderpath.SpecialFolders("Desktop") &
> "\" & objAttachment.FileName)
> ' MsgBox (strFolderpath.SpecialFolders("MyDocuments") & "\email
> attachments\" & objAttachment.FileName)
> objAttachment.SaveAsFile (strFolderpath.SpecialFolders
> ("MyDocuments") & "\email attachments\" & objAttachment.FileName)
> Next
>
> Set objAttachment = Nothing
> Set colAttachments = Nothing
> objCurrentItem.Close (olDiscard)
> Set objCurrentItem = Nothing
>
> End Sub
> ' Delete all Attachments in an (open) email=3F
> Sub DeleteAttachments()
> Dim objCurrentItem As Outlook.MailItem
> Dim colAttachments As Outlook.Attachments
> Dim objAttachment As Outlook.Attachment
>
> Set objCurrentItem = Application.ActiveInspector.CurrentItem
> Set colAttachments = objCurrentItem.Attachments
> ' Set strFolderpath = CreateObject("WScript.Shell")
>
> While colAttachments.Count > 0
> colAttachments.Remove 1
> Wend
>
> Set objAttachment = Nothing
> Set colAttachments = Nothing
> objCurrentItem.Save
> objCurrentItem.Close (olDiscard)
> Set objCurrentItem = Nothing
>
> End Sub
>
> --
> Duncan
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML graphics on email phoneguy518 Microsoft Outlook 1 9th Jan 2010 12:29 PM
2 Thunderbird questions - 1) save embedded graphics, 2) save as html files. fitwell Freeware 3 11th Jul 2004 08:52 AM
2 Thunderbird questions - 1) save embedded graphics, 2) save as html files. fitwell Freeware 0 9th Jul 2004 01:36 PM
Graphics in HTML Email Clark Murray Microsoft Outlook 12 10th Feb 2004 07:17 AM
Pictures/graphics in Outlook HTML email =?Utf-8?B?VGltIFNtaXRo?= Microsoft Outlook Discussion 0 19th Dec 2003 10:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:14 AM.