View Single Post
Old 26-06-2009, 14:21   #5
Keyz333
Inactive
 
Join Date: Oct 2007
Location: Fleet, Hampshire
Age: 35
Services: Cuckoo (BT) Broadband
Posts: 265
Keyz333 has a spectacular aura about themKeyz333 has a spectacular aura about themKeyz333 has a spectacular aura about themKeyz333 has a spectacular aura about them
Send a message via AIM to Keyz333 Send a message via MSN to Keyz333
Re: Automatic mail on PHP web page?

Yeah, I'm sure I can find one for you, I'll send it over in a few minutes, when I find it

EDIT:

PHP Code:
<?php
$to 
"Your@Emailhere.com";
$subject "The Subject";
$body "EG - Someone has Visited Your Website";
if (
mail($to$subject$body)) {
  echo(
"<p>Message successfully sent!</p>");
 } else {
  echo(
"<p>Message delivery failed...</p>");
 }
?>
If you add something like that into the PHP page, it should email you, everytime someone visits that certain PHP page.

Obviously if you fill it all in first.
Keyz333 is offline   Reply With Quote