Create a Website and Make It Profitable

Use Site Build It! to get up and running with your own website, no technical knowledge required, and get ready to cash in on a slice of the giant online advertising industry. Check out Site Build It! to get started.

Free Logo Creator

Logo creation is a long, drawn-out creative process that can cost millions. But a good logo doesn't have to cost a fortune, and you don't even need to hire a professional design team. Check out Logo Creator (Win | Mac) to get started, read our article on obtaining your own Free Logo Creator.



Dec 01 2006

Edit Source in Outlook Emails


Filed under: Software » Email,
Tools:

Editing the Source of Outlook HTML Emails

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 Easiest Way

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.

The More Difficult Way

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.

Average: 3.4 (5 votes)
Select your preferred way to display the comments and click "Save settings" to activate your changes.

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

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Textual smileys will be replaced with graphical ones.

More information about formatting options

CAPTCHA
This question is used to make sure you are a human visitor and to prevent spam submissions.