A Service of Softnik Technologies

Legacy Domain Management Tools

Legacy Product Details

This page provides information about a discontinued product that is no longer officially supported. For information on currently supported products, please visit:

DomainPunch.Com

Domain Alerts and Web Scripts

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";
	}
	?>