Editing the source code of HTML emails in Outlook Express is simple - simply click "edit source." In Outlook it's slightly more complicated - here's how it's done.
The simplest way is to simply copy and paste the content of an HTML-generated page into the email (making sure the email is in "HTML" format - this should retain all the HTML). For those that want to actually mess with the source code, I suggest using a similar approach - use your favorite HTML editor to write the code, and then copy and paste the output (view in browser) into the email.
For those that want to insert the actual HTML code into the email, do the following: In the message dialogue, select file -> insert. At the bottom of the insert window click on the little arrow next to the "Insert..." button. This will let you select "Insert as Text," after which you browse and find the HTML file you wish to load.
Please post any questions and/or comments below.
All Content © 2005 - 2009 Contract Web Development, Inc. All Rights Reserved. Privacy Policy | Terms of Use | Powered by Drupal
The other way
Use these macros to switch the current email between source view and HTML view.
The first will take a HTML message and convert it into a text message, retaining the tags.
Once you've edited it and are ready to send, the 2nd one will convert the text message back to HTML.
Evil Overlord
Sub HTML2Text()
Dim objApp As Application
Dim objItem As MailItem
Dim strBody As String
Set objApp = CreateObject("Outlook.Application")
Set objItem = objApp.ActiveInspector.CurrentItem
If (objItem.BodyFormat = olFormatHTML) Then
strBody = objItem.HTMLBody
objItem.HTMLBody = ""
objItem.Body = strBody
objItem.BodyFormat = olFormatPlain
End If
End Sub
Sub Text2HTML()
Dim objApp As Application
Dim objItem As MailItem
Dim strBody As String
Set objApp = CreateObject("Outlook.Application")
Set objItem = objApp.ActiveInspector.CurrentItem
If (objItem.BodyFormat = olFormatPlain) Then
strBody = objItem.Body
objItem.Body = ""
objItem.HTMLBody = strBody
objItem.BodyFormat = olFormatHTML
End If
End Sub