A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

HTML code changing in Outlook



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 10th 09, 05:16 PM posted to microsoft.public.outlook.program_forms
GwenP
external usenet poster
 
Posts: 3
Default HTML code changing in Outlook

Would anyone be able to shed some light on why - if I attach an HTML file
into my email as text then send it an view the source - the code has changed
and therefore my hyperlinks no longer work?

This is the original code in the htm file:

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
HTMLHEAD
META http-equiv=Content-Type content="text/html; charset=iso-8859-1"
META content="MSHTML 6.00.6000.16705" name=GENERATOR/HEAD
BODY

SCRIPT type=text/vbscript

Function OpenDoc(DocPath)

DIM oWSH

Set oWSH= CreateObject("WScript.Shell")

oWSH.Run "view32.exe " & DocPath, 1, True

set oWSH = nothing
End Function

/SCRIPT

A href="#"
onclick="OpenDoc('\\ourfiles\docs_dir\ws_ourlegal\ ourname\2610\1\7832966.1')"Tip 07 - Using the Elite Auto Matters workspace/ABR
FONT face=Arial color=#ff0000
size=4STRONGGwen/STRONG/FONT/BODY/HTML

and this is the view source code from Outlook:

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
HTMLHEAD
META http-equiv=Content-Type content="text/html; charset=us-ascii"
META content="MSHTML 6.00.6000.16705" name=GENERATOR/HEAD
BODY
DIV
SCRIPT type=text/vbscript

Function OpenDoc(DocPath)

DIM oWSH

Set oWSH= CreateObject("WScript.Shell")

oWSH.Run "view32.exe " & DocPath, 1, True

set oWSH = nothing
End Function

/SCRIPT

A onclick="OpenDoc('\\lofile\ws_docs\ws_legal\colinc \2610\1\7832966.1')"
href="outbind://47/#"Tip 07 - Using the Elite Auto Matters
workspace/A
DIV align=leftFONT face=Arial color=#ff0000
size=4STRONGGwen/STRONG/FONT/DIV
DIV /DIV/BODY/HTML

Thanks
GwenP
  #2  
Old February 10th 09, 08:04 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default HTML code changing in Outlook

Both Outlook and WordMail editors will re-write your HTML, there's nothing
you can do about that. You must have the HTML fully and correctly formatted
to have a prayer of preserving what you want. Aside from Outlook not liking
to run HTML that runs scripts, you will need to use a fully qualified
protocol reference such as "FILE://", you can't use shorthand HTML and
expect it to remotely resemble what you want.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"GwenP" wrote in message
...
Would anyone be able to shed some light on why - if I attach an HTML file
into my email as text then send it an view the source - the code has
changed
and therefore my hyperlinks no longer work?

This is the original code in the htm file:

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
HTMLHEAD
META http-equiv=Content-Type content="text/html; charset=iso-8859-1"
META content="MSHTML 6.00.6000.16705" name=GENERATOR/HEAD
BODY

SCRIPT type=text/vbscript

Function OpenDoc(DocPath)

DIM oWSH

Set oWSH= CreateObject("WScript.Shell")

oWSH.Run "view32.exe " & DocPath, 1, True

set oWSH = nothing
End Function

/SCRIPT

A href="#"
onclick="OpenDoc('\\ourfiles\docs_dir\ws_ourlegal\ ourname\2610\1\7832966.1')"Tip
07 - Using the Elite Auto Matters workspace/ABR
FONT face=Arial color=#ff0000
size=4STRONGGwen/STRONG/FONT/BODY/HTML

and this is the view source code from Outlook:

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
HTMLHEAD
META http-equiv=Content-Type content="text/html; charset=us-ascii"
META content="MSHTML 6.00.6000.16705" name=GENERATOR/HEAD
BODY
DIV
SCRIPT type=text/vbscript

Function OpenDoc(DocPath)

DIM oWSH

Set oWSH= CreateObject("WScript.Shell")

oWSH.Run "view32.exe " & DocPath, 1, True

set oWSH = nothing
End Function

/SCRIPT

A onclick="OpenDoc('\\lofile\ws_docs\ws_legal\colinc \2610\1\7832966.1')"
href="outbind://47/#"Tip 07 - Using the Elite Auto Matters
workspace/A
DIV align=leftFONT face=Arial color=#ff0000
size=4STRONGGwen/STRONG/FONT/DIV
DIV /DIV/BODY/HTML

Thanks
GwenP


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook Express prints all messages in HTML code. DeanWithrow Outlook Express 8 January 18th 09 09:56 PM
Missing HTML Code tempgal Outlook Express 7 June 15th 08 04:13 AM
wats an HTML code Sadey Outlook Express 2 December 13th 07 08:30 PM
Outlook 2003: Rules based on the HTML code Dave Outlook - General Queries 3 March 26th 07 03:34 AM
Mail received as raw HTML code Bardo Outlook - General Queries 0 May 18th 06 06:07 PM


All times are GMT +1. The time now is 08:19 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.