Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

send and email from web page?

Status
Not open for further replies.

PMSLIC

IS-IT--Management
Mar 7, 2002
46
US
I would like to get an email when/if someone accesses my webpage. I'm selling a house and put pics on a web page. I just want to add something to send me an email when the page loads so I know the page has been accessed.

I dont need anything filled in so I dont need a form.

Normally I use coldfusion and could have done it that way but the link got in the paper with a .htm extension.
 
I'd typed this up anyway - and it will help anyone following this thread in the future (so here we go):

This is all you need to do a client-side (non javascript) redirect:
Code:
<html>
<head>
<meta http-equiv=refresh content="0; url=http://www.tek-tips.com/index.cfm"
<title>Redirect page</title>
</head>
<body></body>
</html>
Save as a .htm file (as you had in your advert) and it will redirect anyone visiting that page to the page you define in the url part of the meta tag. The 0 before the url tells the browser how many seconds to wait until redirection occurs (so 0 = immediately in this case).

Now you can redirect to a .cfm (or anything else) page... which can do server-side emails, page counters... anything you really like!

Good luck on selling the house, too [smile]

Cheer,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top