Domain Name Software, Find & Manage Domain Names Easily
 
 

Domain Punch Pro

download trial

Get It Now!


Product Home User Guide
Screen Layout Adding Domains Doing Domain Lookups Whois Server Configuration Domain Categories Domain Alerts & Web Scripts Simple Site Monitoring Lookup Legends Domain Expiry Dates Manual Editing Save / Export / Copy

Domain Alerts, Web-scripts and more...

 

Domain Alerts

The Domain Alerts option allows you to setup various alerts and automated options within the software. These include...

Domain Alerts Setup

Sample PHP Web Script

Here is a sample PHP script you can use to send domain name alerts. Please replace the names and email addresses appropriately and then upload the script to your server. Then type in the URL of the script in the above settings dialog.

The script uses 'alerts' as the POSt variable name. You can change it and specify the same variable name in the software settings box.


<?php
if( isset($_POST['alerts'])) 
{
	$notes     = $_POST["alerts"];
	$notes     = stripslashes($notes);
	$notes     = strip_tags($notes);
	$subject   = "Domain Name Alert";
	$fromname  = "Your From Name";
	$fromemail = "from@example.com";	
	$toname    = "Your To Name";
	$toemail   = "to@example.com";
	
	$to   = $toname.' <'.$toemail.'>';
	$from = 'From: ' . $fromname . ' <' . $fromemail;
	$from .= ">\r\nReturn-Path:" . $fromemail;
	
	mail($to, $subject, $notes, $from);
	echo "Done";
}
else
{
	echo "Error";
}
?>