Tell a Friend Link - How

G

Guest

Hi, I have no idea even how to begin to make a
tell a friend link on my page, but I do want to create it
myself without subscribing to one. Is it possible.
Can someone give me really basic step by step easy
directions to create one, I am an absolute beginner, I
tried google but I cannot understand how to do it, it goes
over my head. Can someone give me really basic simple
step by step instructions on how to do it please. thankyou.
 
T

Trevor L.

bluedolphin said:
Hi, I have no idea even how to begin to make a
tell a friend link on my page, but I do want to create it
myself without subscribing to one. Is it possible.
Can someone give me really basic step by step easy
directions to create one, I am an absolute beginner, I
tried google but I cannot understand how to do it, it goes
over my head. Can someone give me really basic simple
step by step instructions on how to do it please. thankyou.

Here are instructions to reflect what I do. It requires that the viewer have
a default email program, e.g. OE.
I have made a few minor changes, so if it doesn't work, let me know.

You don't have to retype the code - just highlight it, cut it from this post
with Ctl-C and paste it into FP with Ctl-V

Enter Code or HTML view (click on tab at botom of page)

Add this HTML where you want the link to appear:
Email this page to a friend
<form name="eMailer" action="">
Enter recipient's e-mail:
<input type="text" id="address" size="30" />
<input type="button" value="Send" style="cursor:pointer"
onclick="mailThisUrl()" />
</form>

Find the </head> tag and add this *before* it:
var cEA_err = false
function checkEmailAddress(field)
{
// the following expression in () after 'match' must be all on one line...
if
(field.value.match(/(^(\S+@)\S+(((\.ac)|(\.aero)|(\.arpa)|(\.biz)|(\.co)|(\.com)|(\.coop)|(\.edu)|(\.firm)|(\.gov)|(\.info)|(\.int)|(\.jobs)|(\.mil)|(\.museum)|(\.name)|(\.nom)|(\.net)|(\.org)|(\.pro)|(\.store)|(\.travel)|(\.web))(\.\S{2})?)$)/i))
return true
else
{ if (!cEA_err)
{ cEA_err = true
alert('Please enter a valid e-mail address.') }
else
{ if (confirm('Are you sure this is a correct e-mail address?\n\n'
+ field.value + '\n\n'
+ 'Enter OK to accept, Cancel to re-enter'))
return true }
field.focus()
field.select()
return false }
}
function mailThisUrl()
{
var thispage = parent.location.href
var subj = "I thought this might interest you..."
var text = "Here is an interesting Website: "
var content = "mailto:"
+ document.eMailer.address.value
+ "?subject=" + subj
+ "&body=" + text + "%0d%0a"
+ parent.document.title
+ " (" + thispage + ")"
if (checkEmailAddress(document.eMailer.address))
window.location = content
}

--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
----------------------------------------
 
D

David Berry

Or you can do it with ASP. See
http://www.asp101.com/samples/tell_a_friend.asp

--
David Berry
Microsoft MVP - FrontPage
FrontPage Support: http://www.frontpagemvps.com/
-----------------------------------
To assist you in getting the best answers for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
-----------------------------------


Trevor L. said:
bluedolphin said:
Hi, I have no idea even how to begin to make a
tell a friend link on my page, but I do want to create it
myself without subscribing to one. Is it possible.
Can someone give me really basic step by step easy
directions to create one, I am an absolute beginner, I
tried google but I cannot understand how to do it, it goes
over my head. Can someone give me really basic simple
step by step instructions on how to do it please. thankyou.

Here are instructions to reflect what I do. It requires that the viewer
have a default email program, e.g. OE.
I have made a few minor changes, so if it doesn't work, let me know.

You don't have to retype the code - just highlight it, cut it from this
post with Ctl-C and paste it into FP with Ctl-V

Enter Code or HTML view (click on tab at botom of page)

Add this HTML where you want the link to appear:
Email this page to a friend
<form name="eMailer" action="">
Enter recipient's e-mail:
<input type="text" id="address" size="30" />
<input type="button" value="Send" style="cursor:pointer"
onclick="mailThisUrl()" />
</form>

Find the </head> tag and add this *before* it:
var cEA_err = false
function checkEmailAddress(field)
{
// the following expression in () after 'match' must be all on one
line...
if
(field.value.match(/(^(\S+@)\S+(((\.ac)|(\.aero)|(\.arpa)|(\.biz)|(\.co)|(\.com)|(\.coop)|(\.edu)|(\.firm)|(\.gov)|(\.info)|(\.int)|(\.jobs)|(\.mil)|(\.museum)|(\.name)|(\.nom)|(\.net)|(\.org)|(\.pro)|(\.store)|(\.travel)|(\.web))(\.\S{2})?)$)/i))
return true
else
{ if (!cEA_err)
{ cEA_err = true
alert('Please enter a valid e-mail address.') }
else
{ if (confirm('Are you sure this is a correct e-mail address?\n\n'
+ field.value + '\n\n'
+ 'Enter OK to accept, Cancel to re-enter'))
return true }
field.focus()
field.select()
return false }
}
function mailThisUrl()
{
var thispage = parent.location.href
var subj = "I thought this might interest you..."
var text = "Here is an interesting Website: "
var content = "mailto:"
+ document.eMailer.address.value
+ "?subject=" + subj
+ "&body=" + text + "%0d%0a"
+ parent.document.title
+ " (" + thispage + ")"
if (checkEmailAddress(document.eMailer.address))
window.location = content
}

--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
 
A

Andrew Murray

http://www.aspwebpro.com/aspscripts/websitetools/emailthispage.asp

Might be a start for you - ASP code requires Windows server with ASP
support, and also a email component like CDONTS, JMail etc. (whether those
things mean anything to you I don't know).

Unfortunately it is not as "simple" as you like it....this may be over your
head. But it is a complicated process, writing a script to send an email if
you don't know much about how to write the code, or even understand what
cut-n-paste code is doing - in order to troubleshoot problems.

Otherwise try www.hotscripts.com and search for "Tell a Friend" or "Email
this Page" as keywords to search for a suitable script.
 
A

Andrew Murray

http://www.aspwebpro.com/aspscripts/websitetools/emailthispage.asp as well.

David Berry said:
Or you can do it with ASP. See
http://www.asp101.com/samples/tell_a_friend.asp

--
David Berry
Microsoft MVP - FrontPage
FrontPage Support: http://www.frontpagemvps.com/
-----------------------------------
To assist you in getting the best answers for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
-----------------------------------


Trevor L. said:
bluedolphin said:
Hi, I have no idea even how to begin to make a
tell a friend link on my page, but I do want to create it
myself without subscribing to one. Is it possible.
Can someone give me really basic step by step easy
directions to create one, I am an absolute beginner, I
tried google but I cannot understand how to do it, it goes
over my head. Can someone give me really basic simple
step by step instructions on how to do it please. thankyou.

Here are instructions to reflect what I do. It requires that the viewer
have a default email program, e.g. OE.
I have made a few minor changes, so if it doesn't work, let me know.

You don't have to retype the code - just highlight it, cut it from this
post with Ctl-C and paste it into FP with Ctl-V

Enter Code or HTML view (click on tab at botom of page)

Add this HTML where you want the link to appear:
Email this page to a friend
<form name="eMailer" action="">
Enter recipient's e-mail:
<input type="text" id="address" size="30" />
<input type="button" value="Send" style="cursor:pointer"
onclick="mailThisUrl()" />
</form>

Find the </head> tag and add this *before* it:
var cEA_err = false
function checkEmailAddress(field)
{
// the following expression in () after 'match' must be all on one
line...
if
(field.value.match(/(^(\S+@)\S+(((\.ac)|(\.aero)|(\.arpa)|(\.biz)|(\.co)|(\.com)|(\.coop)|(\.edu)|(\.firm)|(\.gov)|(\.info)|(\.int)|(\.jobs)|(\.mil)|(\.museum)|(\.name)|(\.nom)|(\.net)|(\.org)|(\.pro)|(\.store)|(\.travel)|(\.web))(\.\S{2})?)$)/i))
return true
else
{ if (!cEA_err)
{ cEA_err = true
alert('Please enter a valid e-mail address.') }
else
{ if (confirm('Are you sure this is a correct e-mail address?\n\n'
+ field.value + '\n\n'
+ 'Enter OK to accept, Cancel to re-enter'))
return true }
field.focus()
field.select()
return false }
}
function mailThisUrl()
{
var thispage = parent.location.href
var subj = "I thought this might interest you..."
var text = "Here is an interesting Website: "
var content = "mailto:"
+ document.eMailer.address.value
+ "?subject=" + subj
+ "&body=" + text + "%0d%0a"
+ parent.document.title
+ " (" + thispage + ")"
if (checkEmailAddress(document.eMailer.address))
window.location = content
}

--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
 
T

Trevor L.

Andrew said:
http://www.aspwebpro.com/aspscripts/websitetools/emailthispage.asp

Might be a start for you - ASP code requires Windows server with ASP
support, and also a email component like CDONTS, JMail etc. (whether
those things mean anything to you I don't know).

Unfortunately it is not as "simple" as you like it....this may be
over your head. But it is a complicated process, writing a script to
send an email if you don't know much about how to write the code, or
even understand what cut-n-paste code is doing - in order to
troubleshoot problems.
Otherwise try www.hotscripts.com and search for "Tell a Friend" or
"Email this Page" as keywords to search for a suitable script.

I was thinking much the same when I read the ASP scripts.

If the OP doesn't have access to ASP on their server (as I don't on my ISP
home page:
Trevor and Carole's Home Page: http://tandcl.homemail.com.au/ ), then maybe
the Javascript option that I posted would be better
--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
----------------------------------------
 

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