<?
include "$AP/htdocs/stores/cart/common.inc";

$subject=stripslashes($subject);
if (empty($store))
	$store = test_id();
$res = ms_query("select email from client where id = '$store'");
$num = db_numrows($res);
if ($num)
	$email = db_result($res,0,"email");
header("Location: mailto:$email?subject=$subject&body=$body");
exit;
?>
