Email Hyperlinks

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I prevent the genuine destination e-mail address being shown when
creating an e-mail hyperlink in FrontPage 2003?
 
I'm not sure.....it'll always be visible - that's the nature of the Mailto:
type link. It you want to try and reduce spam, there's a "spam spoiler"
script on www.jimcosoftware.com that 'masks' the email address in the code
so spam-bots can't read it, but it will still be visible as a normal address
to the user.

That's probably the best you can do;

Or, find a CGI/PHP/ASP script that can process the email through a HTML
form, in which you put the email address as a value in a in the script
itself, not in the HTML page; this way it is not visible in the html code,
and much harder for spammers to get hold of your address.

The FP form handler can't do this, it just sticks the email address within
the code in the HTML - if you view code, you can see the email address.
 
Unfortunately, I'm very much a beginner, so much of what you just said went
"way over"! I have inherited a website built in Frontpage, which has e-mail
hyperlinks already in effect. I am told that when one clicks on the
hyperlink and sends an email, it arrives at the persons "real" address, but
the address that shows in the to: field is not the real e-mail address, it's
a made up one for the purpose of the site, eg (e-mail address removed)
Trouble is, I don't know how the original web builder did it and need to
change some of the desinations! Am I making any sense? Looked at the code,
which scares me to death, but all it shows is the "pretend" email address as
the hyperlink text and the destination.

I really appreciate your time, I'm loving doing this site but becoming a
little obsessive!

Debs
 
It is not possible for anyone to help you unless you can post a URL to a page with an email address,
etc.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
Looks like this in HTML

<a href="mailto:[email protected]">Email us!!</a>

In FP, type the text you want - like in the above "Email us!!". Hilight
that, hit CTRL-K, click email button, type address.
 
Debs said:
How do I prevent the genuine destination e-mail address being shown
when creating an e-mail hyperlink in FrontPage 2003?

The main intent of Jimco's Spam Spoiler is to split the email address so
that it is not one string
I think doing this hides the address from the automatic spam gatherers

So instead of
<a href="mailto:[email protected]">Email us!!</a>

use
<script type="text/javascript">sendEMail()</script>

Then place this in the <head>
<script type="text/javascript">
function sendEMail()
{
var text = 'Email us!!'
var userTo = 'anyone'
var domainTo = 'anywhere.com'
var userCC = ''
var domainCC = ''
var userBCC = ''
var domainBCC = ''
var subject = 'Response from ' + top.document.title
var body = 'Please enter message here'

var CC = (userCC != '') ? userCC + '@' + domainCC : userCC
// Note: '' is two single quotes
var BCC = (userBCC != '') ? userBCC + '@' + domainBCC : userBCC //
Note: '' is two single quotes

document.write
( '<a href="mailto:'
+ userTo + '@' + domainTo
+ '?subject=' + subject
+ '&cc=' + CC
+ '&bcc=' + BCC
+ '&body=' + body + '">'
+ text + '</a>')
}
</script>

This will create the same thing as
<a href="mailto:[email protected]">Email us!!</a>
When clicked on, it will open the email program with the return email
address entered together with a subject and some body
You have to change userTo and domainTo.
You can change subject and body as you like.
You can change userCC and domainCC if our want a CC
You can change userBCC and domainBCC if our want a BCC
 
Back
Top