html email anchor?
- Started
- Last post
- 17 Responses
- stewart
okay, when i send an html email with an anchor to jump to the english version below it doesn't work.
when sending the email it has added the whole c://file/ thing address to the #anchor tag.
any solutions to this?
- Dancer0
are you hand coding it?
- stewart0
yes i am.
whats the alternative?
- Dancer0
YEah I was going to say that DW automatically puts the local route in. And what Nairn Said put the full URL in.
It could have something to do with the email software??
- stewart0
the point is that i have ONE html document. the first part is dutch, the second part is in english.
at the top i want to make a hyperlink to the anchor, located where the english part starts.
the anchor is #englishversion and in the top i link to that anchor in the same document.
when i send that html email using outlook the link gets broken: #englishversion now is transformed to something like c://files/desktop/htmlfile.htm#e...
is me clear now?
- flashbender0
Not 100% clear, but I'm going to take a shot:
I'm guessing you are testing it locally - not on a server? When you use the 'email this page' in outlook it grabs what is in the locastion bar - and if you are viewing the file from your HD it will be file://c:.....
If you test it on a live server, it should be a "normal" http://www.yoursite/whaterever.h…...
- stewart0
flashbender,
in outlook i select the htmlpage as 'Stationery' and after that i press the 'send' button...
- undo_undo0
have you tried simply putting the anchor in the href. i.e href="#anchorName"
- undo_undo0
didnt read yr original post too well,
send the email to yrself, edit the local file system references and then forward it on to yr recipients
- Nairn0
Stewart, I've just sent myself an html email from Outlook, using the following HTML as Stationery, and it has worked ok.
http://concep3.com/_killme.html
Tell me - you're not doing anything complicated with your Anchors, are you? there're no styles or script calls or anything in there too?
When setting the Stationery, do you 'Create New Stationery' then 'Use this file as template' - or do you force your .html file into the source templates directory? (can't remember how to do that - it's been years since I've had to fiddle with Outlook HTML :)
- Nairn0
er.. that file's called '_killme.html' to remind me to delete it later on - not because i'm depressed that i'm on the computer on a Saturday morning, frittering yet more of my meagre existence away to the desolate wilderness of NT.
Nor is it an invitation, thanks.
- undo_undo0
ha ha I did wonder... thought maybe last night had merged into today for you :)
- stewart0
nairn, in answer to the killme file:
that's exactly how i did it.
in a browser it works okay, but when sent to a receipient the link to the anchor is broken.i also found an article that discourages the use of anchor links in html emails.
kill me.
- Nairn0
bugger.
well - maybe host the english version externally, and do a plain vanilla link to that?
or, 2 vertical columns, languages side by side?
or maybe just do it in txt? :\
good luck!
- Nairn0
New username, undo_undo?
Want to know what's even sadder? (er.. than my being here - not your username)
This is what I'm reading otherwise..
(I forgot about this movie - and it's interesting seeing how someone copes with peaking too early then never clawing back).
* _kills self
- stewart0
hey nairn,
thanks for your help.
for now the text
"english version below the dutch version"
will do.
- undo_undo0
hmm FF seems to be having problems remebering me or it could be the email address i changed on my old account to stop getting sooooooo much NT spam, please take note QBN!
cheer up Nairn its nearly christmas which means food, beer and most important sleep!!