my support.tpl code is:
{include file="header.tpl"}
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr> <td width="10" align="center" valign="top"></td>
<td valign="top">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td bgcolor="#EFEFD5"><span class="signupText"><b>Support</b></span></td>
</tr>
<tr><td><div align="justify"><span class="signupText"><br>
If you have any questions or comments, please do not hesitate to contact us. Before sending a message, please review the </span><a href="?a=cust&page=faq" class="linkM"><strong>F.A.Q</strong></a><span class="signupText"> page. Many common questions are answered there. Your inquiry will be received and immediately proceeded. You will receive the answer during 24 hours.</span></div></td>
</tr>
<tr>
<td>{php}include("http://www.fxeasy.biz/BELLmailer.php");{/php}</td>
</tr>
</table>
</td>
<td width="10" align="center" valign="top"></td>
<td width="180" align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">{if $userinfo.logged != 1} {include file=login_box.tpl}
{/if} </td>
</tr>
<tr>
<td height="1"></td>
</tr>
<tr>
<td>{include file=news_box.tpl}</td>
</tr>
</table></td>
</tr>
</table>
{include file="footer.tpl"}
---------------------------------------------------------------------
the BELLmail.php contains :
<?php
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=\"mailto:gavin@ bellonline.co.u k\">gavin@bell& #x6f;nline.co.uk</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>$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=\"mailto:gavin@ bellonline.co.u k\">gavin@bell& #x6f;nline.co.uk</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>";}
if ($showlink != "no")
{$link = "<br><span style=\"font-size: 10px;\">Powered by <a href=\"http://www.bellonline.co.uk/web-services/free/scripts/php-mailer-script/\" title=\"free PHP mailer script\">BELLonline PHP mailer script</a></span>";}
if ($error == "1")
{$info_notice = "<span style=\"color: " . $error_colour . "; font-weight: bold;\">" . $lang_error . "</span><br>";
if (empty ($submit))
{$info_error = "";
$info_notice = $lang_notice;}
function Random()
{$chars = "ABCDEFGHJKLMNPQRSTUVWZYZ23456789";
srand((double)microtime()*1000000);
$i = 0;
$pass = '' ;
while ($i <= 4)
{$num = rand() % 32;
$tmp = substr($chars, $num, 1);
$pass = $pass . $tmp;
$i++;}
return $pass;}
$random_code = Random();
$mail_message = stripslashes($mail_message);
print "<form name=\"BELLonline_email\" method=\"post\" style=\"margin: 0;\" action=\"\">
<table border=\"0\" cellspacing=\"2\" cellpadding=\"2\">
<tr align=\"$title_align\" valign=\"top\">
<td colspan=\"2\"> </td>
</tr>
<tr align=\"left\" valign=\"top\">
<td colspan=\"2\"><span class=\"signupText\">$info_notice$info_error</span></td>
</tr>
<tr valign=\"top\">
<td align=\"left\" style=\"$form_css\"><span class=\"signupText\">$lang_name</span></td>
<td align=\"left\"><input name=\"senders_name\" type=\"text\" class=\"inpts\" id=\"senders_name\" style=\"width: $input_width;\" value=\"$senders_name\" maxlength=\"32\"></td>
</tr>
<tr valign=\"top\">
<td width=\"100\" align=\"left\"><span class=\"signupText\">$lang_youremail</span></td>
<td align=\"left\"><input name=\"senders_email\" type=\"text\" class=\"inpts\" id=\"senders_email\" style=\"width: $input_width;\" value=\"$senders_email\" maxlength=\"64\"></td>
</tr>
<tr valign=\"top\">
<td width=\"100\" align=\"left\"><span class=\"signupText\">$lang_subject</span></td>
<td align=\"left\">
<select name=\"mail_subject\" class=\"inpts\" id=\"mail_subject\" style=\"width: $input_width;\">
<option value=\"NoSubject\">--Select--</option>
<option value=\"GeneralEnquiry\">General Enquiry</option>
<option value=\"PaymentProblem\">Payment Problem</option>
<option value=\"changeE-goldNumber\">change E-gold Number</option>
<option value=\"changeEmailAddress\">change Email Address</option>
<option value=\"TechnicalSupport\">Technical Support</option>
<option value=\"ForumSupport\">Forum Support</option>
</select>
</tr>
<tr valign=\"top\">
<td width=\"100\" align=\"left\"><span class=\"signupText\">$lang_message</span></td>
<td align=\"left\"><textarea name=\"mail_message\" cols=\"36\" rows=\"5\" style=\"width: $input_width;\" class=\"inpts\">$mail_message</textarea></td>
</tr>
<tr valign=\"top\">
<td> </td>
<td colspan=\"2\" align=\"left\"><input name=\"randomness\" type=\"hidden\" id=\"randomness\" value=\"$random_code\">
<input name=\"submit\" type=\"submit\" id=\"submit\" value=\"$lang_submit\" class=\"sbmt\"></td>
</tr>
</table>
</form>";}else
{$info_notice = $lang_sent;
$mail_message = stripslashes($mail_message);
$headers = "From: $senders_name <$senders_email> \r\n";
$headers .= "X-Mailer: BELLonline.co.uk PHP mailer \r\n";
mail($sendto_email, $mail_subject, $mail_message, $headers);
print " <table border=\"0\" cellspacing=\"2\" cellpadding=\"2\">
<tr align=\"$title_align\" valign=\"top\">
<td colspan=\"2\"><span class=\"signupText\"><b>$info_notice</b></span></td>
</tr>
<tr valign=\"top\">
<td width=\"100\" align=\"right\"><span class=\"signupText\">$lang_name</span></td>
<td align=\"left\"><span class=\"signupText\"><b>$senders_name</b></span></td>
</tr>
<tr valign=\"top\">
<td width=\"100\" align=\"right\"><span class=\"signupText\">$lang_youremail</span></td>
<td align=\"left\"><span class=\"signupText\"><b>$senders_email</b></span></td>
</tr>
<tr valign=\"top\">
<td width=\"100\" align=\"right\"><span class=\"signupText\">$lang_subject</span></td>
<td align=\"left\"><span class=\"signupText\"><b>$mail_subject</b></span></td>
</tr>
<tr valign=\"top\">
<td width=\"100\" align=\"right\"><span class=\"signupText\">$lang_message</span></td>
<td align=\"left\"><span class=\"signupText\"><b>$mail_message</b></span></td>
</tr>
</table>";
}
print $link;
?>
--------------------------------------------------------------------------
the config.php contains:
<?php
$sendto_email = "admin@fxeasy.biz";
$lang_title = "Send us an email:";
$lang_notice = "Fill in the form to contact us by email. All fields are required";
$lang_name = "Your name:";
$lang_youremail = "Your email:";
$lang_subject = "Subject:";
$lang_message = "Message";
$lang_confirmation = "Enter Code:";
$lang_submit = "Send email";
$lang_error = "Your email has not been sent, the following errors were found:";
$lang_noname = "You did not enter your name";
$lang_noemail = "You did not enter your email address";
$lang_nosubject = "You did not enter a subject";
$lang_nomessage = "You did not enter a message";
$lang_nocode = "You did not the validation code";
$lang_wrongcode = "You entered the validation code incorrectly. Please note that it is case sensitive";
$lang_invalidemail = "The email address that you entered appears to be invalid";
$lang_sent = "Your email has been sent. The following message was submitted:";
$input_width = "300px";
$title_align = "left"; // Can be left, center or right
$title_css = "font-weight: bold; font-size: 11px; font-family: Geneva, Arial, Helvetica, sans-serif; color: #000000;";
$form_css = "font-size: 10px;";
$error_colour = "red"; // Must use HTML compatible colour
$showlink = "yes";
?>