Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1261
  • Last Modified:

Anchor link in Outlook 2007

Hi,

I need to send HTML-formatted email with an anchor link, but the anchor link does not work when I open the email in Outlook 2007.

However, it does work if I send it via Thunderbird and open in either Thunderbird or web mail. I've also tried formatting the html several different ways from things I've googled, like using an anchor link without quotes or using a div.

How can I get an anchor link to work in Outlook 2007?
0
GoldenBear
Asked:
GoldenBear
  • 5
  • 4
1 Solution
 
qwerty021600Commented:
Anchor link does work in Outlook 7, copy the html page u have created in
C:\Documents and Settings\qwerty\Application Data\Microsoft\Stationery

Instead of qwerty, click on ur name and check..
0
 
GoldenBearAuthor Commented:
Thanks, but I tried and couldn't get it to work. I've attached my code this time.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Untitled Page</title>
</head>
<body>
<a href="#test">link to test</a>

    <br /><br /><br /><br />
      <br /><br /><br /><br />
    
    <br /><br /><br /><br />
    <br /><br /><br /><br />
    
      <br /><br /><br /><br />
    
    <br /><br /><br /><br />
    <br /><br /><br /><br />    <br /><br /><br /><br />
      <br /><br /><br /><br />
    
    <br /><br /><br /><br />
    <br /><br /><br /><br />

      <br /><br /><br /><br />
    
    <br /><br /><br /><br />
    <br /><br /><br /><br />
      <br /><br /><br /><br />
    <br /><br /><br /><br />
    
    
  
<p id=test>test</p>
<p id="test">test</p>

</body>
</html>

Open in new window

0
 
qwerty021600Commented:
did u copy this code at the place i told u to put?
0
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

 
GoldenBearAuthor Commented:
Yes, and then in Outlook  I selected Action, New Mail Message Using, and then the name of the html file
0
 
qwerty021600Commented:
reopen outlook
0
 
GoldenBearAuthor Commented:
When I sent it and received it, it got reformatted.

The first id tag was removed.
The second id tag stayed.

But when I clicked on the link with href="#test", it did not go to the section with the id tag.

I've attached the code that Outlook reformatted.
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta name="Microsoft Theme 2.00" content="test.htm 011">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:SimSun;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:SimSun;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:"\@SimSun";
	panose-1:0 0 0 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
span.EmailStyle17
	{mso-style-type:personal-compose;
	color:black;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><a href="#test">link to test</a> <br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<o:p></o:p></p>

<p>test<o:p></o:p></p>

<p id=test><span style='color:black'>test<o:p></o:p></span></p>

</div>

</body>

</html>

Open in new window

0
 
qwerty021600Commented:
hey specify some url instead of #test in the href part of <a> tag. then only u'll get to know whether it's working or not.
0
 
GoldenBearAuthor Commented:
But I'm looking specifically to get anchor links to work. The http urls work fine.
0
 
GoldenBearAuthor Commented:
Didn't quite work for me, but maybe it will work for someone else.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now