/*--- Avanquest WebEasy Custom Script ---*/

<?php 
/*  
	BELLonline PHP MAILER SCRIPT v1.5 
	Copyright 2006 Gavin Bell  
	http://www.bellonline.co.uk  
	gavin@bellonline.co.uk 
 
	Set up an email form on your website within minutes - see readme.txt for installation. 
*/ 
 
extract($_POST); 
 
if (!file_exists("config.php"))  
	{ 
$host = $_SERVER[HTTP_HOST ]; 
$path = pathinfo($_SERVER['PHP_SELF']); 
$file_path = $path['dirname']; 
print "<h1>BELLonline PHP mailer script</h1> 
	<h2>There is a problem with your PHP mailer script installation</h2>  
	<p>The config.php file seems to be missing!</p> 
	<p>For this script to work, you need to upload the config.php file that came with the download of the BELLonline <a href=\"http://www.bellonline.co.uk/web-services/free/scripts/php-mailer-script/\">PHP mailer script</a>.</p> 
	<p>The file must be in the following directory of your website:</p> 
	<p>$host<span style=\"font-weight: bold; font-size: 150%;\">$file_path/</span></p> 
	<p>If you need help installing the script, then feel free to email me at <a href=\"&#x6d;&#x61;&#105;&#108;&#116;&#x6f;&#58;&#x67;&#x61;&#118;&#x69;&#110;&#64;&#98;&#x65;&#x6c;&#x6c;&#x6f;&#110;&#x6c;&#105;&#110;&#101;&#46;&#x63;&#111;&#46;&#x75;&#x6b;\">&#x67;&#x61;&#118;&#x69;&#110;&#64;&#98;&#x65;&#x6c;&#x6c;&#x6f;&#110;&#x6c;&#105;&#110;&#101;&#46;&#x63;&#111;&#46;&#x75;&#x6b;</a></p>"; 
exit; 
	} 
include "config.php"; 
 
 
if ($sendto_email == "changeme@example.com") 
	{ 
print "<h1>BELLonline PHP mailer script</h1> 
	<h2>Installation nearly complete!</h2> 
	<p>Thank you for downloading the <a href=\"http://www.bellonline.co.uk/web-services/free/scripts/php-mailer-script/\" title=\"free PHP mailer script\">free PHP mailer script</a> from <a href=\"http://www.bellonline.co.uk\">BELLonline web services</a>. </p> 
	<p>To start using the script, open config.php in a text editor and change the <b>&#36;sendto_email</b> variable to your email address.</p> 
	<p>If you did not get a config.php file with this script, then go to the <a href=\"http://www.bellonline.co.uk/web-services/free/scripts/php-mailer-script/\">PHP mailer script page</a> and download the full script.</p> 
	<p>If you need help installing the script, then feel free to email me at <a href=\"&#x6d;&#x61;&#105;&#108;&#116;&#x6f;&#58;&#x67;&#x61;&#118;&#x69;&#110;&#64;&#98;&#x65;&#x6c;&#x6c;&#x6f;&#110;&#x6c;&#105;&#110;&#101;&#46;&#x63;&#111;&#46;&#x75;&#x6b;\">&#x67;&#x61;&#118;&#x69;&#110;&#64;&#98;&#x65;&#x6c;&#x6c;&#x6f;&#110;&#x6c;&#105;&#110;&#101;&#46;&#x63;&#111;&#46;&#x75;&#x6b;</a></p>"; 
exit; 
	}  
if (empty ($senders_name))  
	{ 
	$error = "1"; 
	$info_error .= $lang_noname . "<br>";  
	} 
if (empty ($senders_email))  
	{ 
	$error = "1"; 
	$info_error .= $lang_noemail . "<br>";   
	} 
if (empty ($mail_subject))  
	{ 
	$error = "1"; 
	$info_error .= $lang_nosubject . "<br>";   
	} 
if (empty ($mail_message))   
	{ 
	$error = "1"; 
	$info_error .= $lang_nomessage . "<br>";   
	} 
if (!eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,6}$", $senders_email)) 
	{ 
	$error = "1"; 
	$info_error .= $lang_invalidemail . "<br>";  
	}

/*--- EndOfFile ---*/
