<?
include "./auth.inc.php";
if ($body && $email){
$header .="From: Adam Internet Customer Service Dept <help@adam.com.au>\n";
$header .="X-Authenticated-Sender: $PHP_AUTH_USER@$REMOTE_ADDR\n";
mail($email, "$subject",$body, $header);
$usql = "UPDATE PendingPayments SET DeclinedWarning=now() WHERE PaymentID=$ppID";
mysql_query($usql);
if (mysql_error())
print mysql_error().$usql;
header("Location: credit.php");
}
?>
<HTML>
<HEAD></HEAD>
<BODY bgcolor=white>
Send Email Warning for declined credit card to <? echo $email ?>.
<FORM>
<input type=hidden name=email value="<? echo $email ?>">
<input type=hidden name=ppID value="<? echo $ppID ?>">
Subject: <input type=text size=30 name=subject value="Recent Credit Card Transaction">
<BR>
<TEXTAREA name=body rows=20 cols=60>
This is an urgent message regarding your last credit
card charge.
We are having difficulty processing this transaction and
need to confirm the details.
Please contact Adam Internet on (08) 8231 0303 Monday
to Friday 9am to 7pm and Saturday 10am to 5pm or
our after hours support number 8358 6662.
Prompt action to this email will ensure uninterrupted
Internet access.
If this uncertainty has already been resolved then
disregard this email.
Regards,
Adam Internet Customer Service Department
This is a System Generated Message.
</TEXTAREA>
<? if ($email){ ?>
<br><input type=submit value="Send Email">
<? } ?>
</FORM>
</body>
</html>