mailto

  • Thread starter Thread starter Hugh Welford
  • Start date Start date
H

Hugh Welford

can anyone tell me how to set up a Mailto hyperlink that will include a
subject line in the outgoing e-mail

thanks

Hugh
 
In FP select the text or image for the mailto link, click on the Hyperlink icon in the toolbar, click on the Email Address in the
left hand box and complete the dialog.

Note creating mailto tags in HTML is inviting spam harvester to send spam to the email address provided so you may wish to use
J-Bots Spam Stopper instead.
http://www.websunlimited.com/order/Product/SpamStopper/spam_stopper_help_dir.htm

--
Mike -- FrontPage MVP '97-'02
http://www.websunlimited.com
Create fast, better scaling link bars with CSS Menu Maker
http://www.websunlimited.com/order/Product/CssMenu/css_menu.htm
FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
 
Try

Use ?Subject=This is my subject.
Example:
<a href=mailto:[email protected]?Subject=This is my subject > Email US</a>

xmas
=============================
| can anyone tell me how to set up a Mailto hyperlink that will include a
| subject line in the outgoing e-mail
|
| thanks
|
| Hugh
|
|
 
If you want an anti-spam address, where the email address is build
on-the-fly to prevent harvesting of addresses of the web site, copy this
into a file and name it email.js ...

var addr='yourname'
var domain='@youraddress.com'

function DoEmail(subject)
{
var stmp= 'mailto:' + addr + domain + '?Subject=' + subject;
window.location.replace(stmp);
}



Then, where you want the link to occur, you insert the following HTML in
HTML view in FrontPage:

<a href="javascript:DoEmail('Comments on the site')">Email Me</a>



Finally, at the top of the page between the <head> tags, point to the
email.js file you saved in your web, ie...

<head>
.... other head tags
<script language="JavaScript" src="js/email.js"></script>
</head>


Save the page and preview in a browser. Clicking the "Email Me" link will
open the email with the subject "Comments on the site" already filled in.

--

Randy Birch
MVP Visual Basic
http://vbnet.mvps.org/
Please respond only to the newsgroups so all can benefit.


: can anyone tell me how to set up a Mailto hyperlink that will include a
: subject line in the outgoing e-mail
:
: thanks
:
: Hugh
:
:
 
Back
Top