Email hyperlink with bookmark

R

Rack Jite

What I want to do is a simple rendition of SEND THIS ARTICLE
TO A FRIEND thing.

I have made bookmarks on many headings within a long page.
I want to create an email hyperlink for each that says EMAIL
THIS, that will include that url with the bookmark string.
I want that URL to automatically go into the body of the
message when the person clicks on it and it takes him to his
email editor. then all he has to do is fill in SUBJECT and
SEND.
I assume it has something to do with that PARAMATERS option
in the email hyperlink area of the edit link window.

Or perhaps I have this all wrong and there is some other way
of doings this.

Thanx!

RJ
 
S

Steve Easton

Here's an example with the email address and subject:
<a href="mailto:[email protected]?subject=the subject&body=www.website.com">test</a>

Without the email address:
<a href="mailto:?subject=the subject&body=www.website.com">test</a>

Without the email address or the subject:

<a href="mailto:?subject=&body=www.website.com">test</a>

Paste it in a new blank page and then preview in browser to see how it works.


--
Steve Easton
Microsoft MVP FrontPage
FP Cleaner
http://www.95isalive.com/fixes/fpclean.htm
Hit Me FP
http://www.95isalive.com/fixes/HitMeFP.htm
 
R

Rack Jite

Here's an example with the email address and subject:
<a href="mailto:[email protected]?subject=the subject&body=www.website.com">test</a>

Without the email address:
<a href="mailto:?subject=the subject&body=www.website.com">test</a>

Without the email address or the subject:

<a href="mailto:?subject=&body=www.website.com">test</a>

Paste it in a new blank page and then preview in browser to see how it works.

WOW, that was fast, thanx... A LOT!
I need one more piece to the puzzle...
I gave it a run and it isnt going down the page to the
header string I want it to.
So I am not doing the bookmark part correctly.

If I make a bookmark, it adds the name of it behind the href
Like this...
"ahref="mailto:?subject=&body=http://mysite/atest.htm"
name="mybookmarkname">
But it doesnt put any code behind the HTM like I think it
should. Immediately behind the .htm what should be there?
The name of my bookmark or the actual string of text?
What is the paramater between the .htm and the name or
string? I thought it was a#

And I have to do this for about a thousand headings. :)
So I am going to have to find some easy way of doing it...
 
T

Trevor L.

Rack said:
WOW, that was fast, thanx... A LOT!
I need one more piece to the puzzle...
I gave it a run and it isnt going down the page to the
header string I want it to.
So I am not doing the bookmark part correctly.

If I make a bookmark, it adds the name of it behind the href
Like this...
"ahref="mailto:?subject=&body=http://mysite/atest.htm"
name="mybookmarkname">
But it doesnt put any code behind the HTM like I think it
should. Immediately behind the .htm what should be there?
The name of my bookmark or the actual string of text?
What is the paramater between the .htm and the name or
string? I thought it was a#

And I have to do this for about a thousand headings. :)
So I am going to have to find some easy way of doing it...

Hi, I am not Steve Easton, but I am having trouble understanding your query

This is not the code one would expect:
"ahref=mailto:?subject=&body=http://mysite/atest.htm name="mybookmarkname">
It should be more like:
<a href="mailto:?subject=&body=http://mysite/atest.htm"
name="mybookmarkname">Click this text to send email</a>

The name is probably not relevant unless you need to use it somewhere else
in the code and can be removed completely,
E.G. <a href="mailto:?subject=&body=http://mysite/atest.htm">Click this text
to send email</a>

The text between <a href=..........> and </a> is what appears on the page
and what is clicked to open the email program.

Please post back with your exact code if you are still having problems - it
shouldn't be very large for one example.

As for an easy way, I can only think of cut and paste or search and replace,
but if the links need to be different in any way, then each one would have
to be altered individually.
 
T

Trevor L.

When I viewed my post, part of it looked different

It arrived, at least in my reader (OE6), as:
E.G. <a href="mailto:?subject=&body=Click">http://mysite/atest.htm">Click
this text
to send email</a>

I sent
E.G. <a href="mailto:?subject=&body=http://mysite.atest.htm">Click this text
to send email</a>

If this still comes out incorrectly, I will try again.
 
T

Trevor L.

Trevor said:
When I viewed my post, part of it looked different

It arrived, at least in my reader (OE6), as:
E.G. <a
href="mailto:?subject=&body=Click">http://mysite/atest.htm">Click
this text
to send email</a>

I sent
E.G. <a href="mailto:?subject=&body=http://mysite.atest.htm">Click
this text to send email</a>

If this still comes out incorrectly, I will try again.

Well, it happened again.
When I view the post before sending it, it looks fine.
When I view the post after it has been sent, it is corrupted.

SO,
1. Can anyone tell me why?
2. The correct line does NOT have the characters Click">
after &body= and before >http://
 
R

Rack Jite

To hyperlink to a bookmark it would look like this:
<a href="mailto:[email protected]?subject=the
subject&body=www.website.com/pagename.htm#bookmarkname"></a>

To link to a bookmark ( to the actual location in the page rewuires the pound sign and the
actual bookmark name after the page name.

As I have to do this for a thousand different headings, is
the bookmark necessary?
Just the unique string behind the # will not work?
I think this is one of the hopefully stupid questions.
I tried it and didnt work! I just want to eliminate one
process I guess. :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top