/*************************************************************** * email or fax the person * email to include * ref to click on for house * or * all houses * email address or telephone if appropriate or both ***************************************************************/ include 'common.inc'; #$no_cache = 'Y'; $member='N'; $body=stripslashes($body); $addr=stripslashes($addr); if (empty($subject)) { $subject = 'Recycled chicken order'; } $subject=stripslashes($subject); if (!empty($action)) { if (!test_email($email)) { $action = "bad"; } } if ($action and !empty($addr) and !empty($body) and !empty($subject)) { form_head(); $fd = popen($MP,"w"); fputs($fd, "To: $mailman\n"); fputs($fd, "CC: george@bullnet.co.uk\n"); fputs($fd, "From: $email\n"); fputs($fd, "Subject: $subject\n"); fputs($fd, "Reply-to: $email\n"); $ver = phpversion(); fputs($fd, "X-Mailer: PHP/FI $ver\n\n"); fputs($fd, "\nTel. $tel\n"); fputs($fd, "\nSend To"); fputs($fd, "\n$addr\n"); fputs($fd, "\nChicken Details\n"); fputs($fd, $body); pclose($fd); echo "
Orders are despatched within 3 days of receiving payments'; form_foot(); exit; } form_head(); ?>